| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
2 files changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -215,6 +215,8 @@ When you use the ``--lfs`` option, you will need to make sure you have Git LFS i | |||
| 215 | 215 | ||
| 216 | 216 | Instructions on how to do this can be found on https://git-lfs.github.com. | |
| 217 | 217 | ||
| 218 | + LFS objects are fetched for all refs, not just the current checkout, ensuring a complete backup of all LFS content across all branches and history. | ||
| 219 | + | ||
| 218 | 220 | ||
| 219 | 221 | About Attachments | |
| 220 | 222 | ----------------- | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -2090,11 +2090,13 @@ def fetch_repository( | |||
| 2090 | 2090 | git_command.pop() | |
| 2091 | 2091 | logging_subprocess(git_command, cwd=local_dir) | |
| 2092 | 2092 | else: | |
| 2093 | - if lfs_clone: | ||
| 2094 | - git_command = ["git", "lfs", "clone", remote_url, local_dir] | ||
| 2095 | - else: | ||
| 2096 | - git_command = ["git", "clone", remote_url, local_dir] | ||
| 2093 | + git_command = ["git", "clone", remote_url, local_dir] | ||
| 2097 | 2094 | logging_subprocess(git_command) | |
| 2095 | + if lfs_clone: | ||
| 2096 | + git_command = ["git", "lfs", "fetch", "--all", "--prune"] | ||
| 2097 | + if no_prune: | ||
| 2098 | + git_command.pop() | ||
| 2099 | + logging_subprocess(git_command, cwd=local_dir) | ||
| 2098 | 2100 | ||
| 2099 | 2101 | ||
| 2100 | 2102 | def backup_account(args, output_directory): | |
| Back | FazBrowse Home | New Git URL |
0 commit comments