From 5b8e33407732f8dcad92d44c71bf4a454646cd78 Mon Sep 17 00:00:00 2001 From: Shrikant Sharat Date: Fri, 21 Sep 2012 18:35:28 +0530 Subject: [PATCH] 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. --- antigen.zsh | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/antigen.zsh b/antigen.zsh index fc4149b..c24a6a8 100644 --- a/antigen.zsh +++ b/antigen.zsh @@ -356,7 +356,10 @@ antigen-snapshot () { # The snapshot content lines are pairs of repo-url and git version hash, in # the form: # - 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)" -- 2.0.0