Commit 5b8e33407732f8dcad92d44c71bf4a454646cd78

Authored by Shrikant Sharat
1 parent fb74da6ce7

Only save bundles that have a local clone in snapshot.

Saving the hash of bundles that don't have a local git clone doesn't make sense.

Showing 1 changed file with 4 additions and 1 deletions Side-by-side Diff

... ... @@ -356,7 +356,10 @@ antigen-snapshot () {
356 356 # The snapshot content lines are pairs of repo-url and git version hash, in
357 357 # the form:
358 358 # <version-hash> <repo-url>
359   - local snapshot_content="$(-antigen-echo-record | sed 's/ .*$//' | sort -u |
  359 + local snapshot_content="$(-antigen-echo-record |
  360 + grep 'true$' |
  361 + sed 's/ .*$//' |
  362 + sort -u |
360 363 while read url; do
361 364 local dir="$(-antigen-get-clone-dir "$url")"
362 365 local version_hash="$(cd "$dir" && git rev-parse HEAD)"