Browse Source

vcs_update: start by fetching all remotes and tags

Signed-off-by: Alejandro Mery <amery@geeks.cl>
master
Alejandro Mery 10 years ago
parent
commit
694b7946fc
1 changed files with 3 additions and 0 deletions
  1. +3
    -0
      files/bin/vcs_update

+ 3
- 0
files/bin/vcs_update

@ -15,6 +15,9 @@ update_git() {
cd "$1" || return 1 cd "$1" || return 1
echo "== $PWD" echo "== $PWD"
git fetch --all --prune
git remote | xargs -r git fetch --multiple --prune --tags
if [ -n "$(git ls -md)" ]; then if [ -n "$(git ls -md)" ]; then
if git stash; then if git stash; then
staged=true staged=true

Loading…
Cancel
Save