Skip to content

Commit

Permalink
Only save bundles that have a local clone in snapshot.
Browse files Browse the repository at this point in the history
Saving the hash of bundles that don't have a local git clone doesn't make sense.
  • Loading branch information
sharat87 committed Sep 21, 2012
1 parent fb74da6 commit 5b8e334
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion antigen.zsh
Expand Up @@ -356,7 +356,10 @@ antigen-snapshot () {
# The snapshot content lines are pairs of repo-url and git version hash, in
# the form:
# <version-hash> <repo-url>
local snapshot_content="$(-antigen-echo-record | sed 's/ .*$//' | sort -u |
local snapshot_content="$(-antigen-echo-record |
grep 'true$' |
sed 's/ .*$//' |
sort -u |
while read url; do
local dir="$(-antigen-get-clone-dir "$url")"
local version_hash="$(cd "$dir" && git rev-parse HEAD)"
Expand Down

0 comments on commit 5b8e334

Please sign in to comment.