| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 file changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -1318,13 +1318,15 @@ def fetch_repository( | |||
| 1318 | 1318 | git_command = ["git", "remote", "set-url", "origin", remote_url] | |
| 1319 | 1319 | logging_subprocess(git_command, cwd=local_dir) | |
| 1320 | 1320 | ||
| 1321 | - if lfs_clone: | ||
| 1322 | - git_command = ["git", "lfs", "fetch", "--all", "--prune"] | ||
| 1323 | - else: | ||
| 1324 | - git_command = ["git", "fetch", "--all", "--force", "--tags", "--prune"] | ||
| 1321 | + git_command = ["git", "fetch", "--all", "--force", "--tags", "--prune"] | ||
| 1325 | 1322 | if no_prune: | |
| 1326 | 1323 | git_command.pop() | |
| 1327 | 1324 | logging_subprocess(git_command, cwd=local_dir) | |
| 1325 | + if lfs_clone: | ||
| 1326 | + git_command = ["git", "lfs", "fetch", "--all", "--prune"] | ||
| 1327 | + if no_prune: | ||
| 1328 | + git_command.pop() | ||
| 1329 | + logging_subprocess(git_command, cwd=local_dir) | ||
| 1328 | 1330 | else: | |
| 1329 | 1331 | logger.info( | |
| 1330 | 1332 | "Cloning {0} repository from {1} to {2}".format( | |
| Back | FazBrowse Home | New Git URL |
0 commit comments