forked from ESCOMP/CAM
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge commit '87640adf43cdd3c30acd258185f128e638cb41ac' into rme/cam6…
…_3_161
- Loading branch information
Showing
6 changed files
with
29 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -298,15 +298,25 @@ def submodules_status(gitmodules, root_dir, toplevel=False): | |
# submodule commands use path, not name | ||
url = url.replace("[email protected]:", "https://github.com/") | ||
tags = rootgit.git_operation("ls-remote", "--tags", url) | ||
result = rootgit.git_operation("submodule","status",newpath).split() | ||
ahash = None | ||
if result: | ||
ahash = result[0][1:] | ||
hhash = None | ||
atag = None | ||
needsupdate += 1 | ||
if not toplevel and level: | ||
continue | ||
for htag in tags.split("\n"): | ||
if tag and tag in htag: | ||
if htag.endswith('^{}'): | ||
htag = htag[:-3] | ||
if ahash and not atag and ahash in htag: | ||
atag = (htag.split()[1])[10:] | ||
if tag and not hhash and htag.endswith(tag): | ||
hhash = htag.split()[0] | ||
if hhash and atag: | ||
break | ||
if tag and tag == atag: | ||
if tag and (ahash == hhash or atag == tag): | ||
print(f"e {name:>20} not checked out, aligned at tag {tag}") | ||
elif tag: | ||
ahash = rootgit.git_operation( | ||
|
@@ -565,10 +575,12 @@ def main(): | |
|
||
logger.info("action is {} root_dir={} file_name={}".format(action, root_dir, file_name)) | ||
|
||
if not os.path.isfile(os.path.join(root_dir, file_name)): | ||
file_path = utils.find_upwards(root_dir, file_name) | ||
if not root_dir or not os.path.isfile(os.path.join(root_dir, file_name)): | ||
if root_dir: | ||
file_path = utils.find_upwards(root_dir, file_name) | ||
|
||
if file_path is None: | ||
if root_dir is None or file_path is None: | ||
root_dir = "." | ||
utils.fatal_error( | ||
"No {} found in {} or any of it's parents".format(file_name, root_dir) | ||
) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
[tool.poetry] | ||
name = "git-fleximod" | ||
version = "0.7.6" | ||
version = "0.7.7" | ||
description = "Extended support for git-submodule and git-sparse-checkout" | ||
authors = ["Jim Edwards <[email protected]>"] | ||
maintainers = ["Jim Edwards <[email protected]>"] | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters