Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork939
BF: use get, not casting get_value while dealing with submodule path/url etc#667
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
Uh oh!
There was an error while loading.Please reload this page.
Changes fromall commits
File filter
Filter by extension
Conversations
Uh oh!
There was an error while loading.Please reload this page.
Jump to
Uh oh!
There was an error while loading.Please reload this page.
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -123,12 +123,12 @@ def _set_cache_(self, attr): | ||
reader = self.config_reader() | ||
# default submodule values | ||
try: | ||
self.path = reader.get('path') | ||
except cp.NoSectionError: | ||
raise ValueError("This submodule instance does not exist anymore in '%s' file" | ||
% osp.join(self.repo.working_tree_dir, '.gitmodules')) | ||
# end | ||
self._url = reader.get('url') | ||
# git-python extension values - optional | ||
self._branch_path = reader.get_value(self.k_head_option, git.Head.to_full_path(self.k_head_default)) | ||
elif attr == '_name': | ||
@@ -1168,11 +1168,11 @@ def iter_items(cls, repo, parent_commit='HEAD'): | ||
for sms in parser.sections(): | ||
n = sm_name(sms) | ||
p = parser.get(sms, 'path') | ||
u = parser.get(sms, 'url') | ||
b = cls.k_head_default | ||
if parser.has_option(sms, cls.k_head_option): | ||
b = str(parser.get(sms, cls.k_head_option)) | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others.Learn more. could even strip away us of str here... note that | ||
# END handle optional information | ||
# get the binsha | ||