| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -358,7 +358,9 @@ def add(cls, repo, name, path, url=None, branch=None, no_checkout=False): | |||
| 358 | 358 | if sm.exists(): | |
| 359 | 359 | # reretrieve submodule from tree | |
| 360 | 360 | try: | |
| 361 | - return repo.head.commit.tree[path] | ||
| 361 | + sm = repo.head.commit.tree[path] | ||
| 362 | + sm._name = name | ||
| 363 | + return sm | ||
| 362 | 364 | except KeyError: | |
| 363 | 365 | # could only be in index | |
| 364 | 366 | index = repo.index | |
| Back | FazBrowse Home | New Git URL |
0 commit comments