Browse files

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.
  • Loading branch information...
1 parent fb74da6 commit 5b8e33407732f8dcad92d44c71bf4a454646cd78 @sharat87 sharat87 committed Sep 21, 2012
Showing with 4 additions and 1 deletion.
  1. +4 −1 antigen.zsh
View
5 antigen.zsh
@@ -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)"

0 comments on commit 5b8e334

Please sign in to comment.