Browse Source

Fetch the last ref before pulling

pull/12/head
Shawn Kim 6 years ago
parent
commit
f605276bd3
No known key found for this signature in database GPG Key ID: FAB7149AF1482657
1 changed files with 2 additions and 0 deletions
  1. +2
    -0
      bin/git-vendor

+ 2
- 0
bin/git-vendor View File

@ -148,6 +148,7 @@ cmd_update()
START) ;;
git-vendor-dir:) dir="$b" ;;
git-vendor-repository:) repository="$b" ;;
git-vendor-ref:) curr_ref="$b" ;;
END)
# Make sure the dependency exists on disk
if [ ! -d "$dir" ]; then
@ -164,6 +165,7 @@ git-vendor-dir: $dir
git-vendor-repository: $repository
git-vendor-ref: $ref
"
git fetch "$repository" "$curr_ref"
git subtree pull --prefix "$dir" --message "$message" "$repository" "$ref" --squash
break
fi


Loading…
Cancel
Save