Commit 8d0d219d6f179def61158166d83e22db4770a46b

Authored by Shrikant Sharat
1 parent e7bf36002c

Fix #9 Update command created extra clone.

The update command is not aware of the --branch functionality and is not updated
to behave well in its precense. Because of this, it creates a clone to a
incorrect directory instead of updating the existing clone directory.

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

... ... @@ -75,9 +75,12 @@ antigen-bundles () {
75 75  
76 76 antigen-update () {
77 77 # Update your bundles, i.e., `git pull` in all the plugin repos.
78   - -antigen-echo-record | awk '{print $1}' | sort -u | while read url; do
79   - -antigen-ensure-repo --update "$url"
80   - done
  78 + -antigen-echo-record \
  79 + | awk '{print $1 "|" $4}' \
  80 + | sort -u \
  81 + | while read url_line; do
  82 + -antigen-ensure-repo --update "${url_line%|*}" "${url_line#*|}"
  83 + done
81 84 }
82 85  
83 86 -antigen-get-clone-dir () {