Browse Source

update.sh: exit if $remote/$rbranch doesn't translate to a rev hash

master
Alejandro Mery 10 years ago
parent
commit
4a7363e403
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      update.sh

+ 1
- 1
update.sh

@ -15,7 +15,7 @@ echo "# $PWD ($branch <- $rurl:$rbranch)"
hash0=$(git rev-parse "$remote/$rbranch")
git fetch "$remote"
hash1=$(git rev-parse "$remote/$rbranch")
[ "$hash0" != "$hash1" ] || exit
[ -n "$hash0" -a -n "$hash1" -a "$hash0" != "$hash1" ] || exit
if [ "$(git ls-files -md)" ]; then
stashed=true

Loading…
Cancel
Save