tests/fate.sh: run git reset only when fetch succeded
authorMichael Niedermayer <michaelni@gmx.at>
Tue, 29 Oct 2013 20:53:08 +0000 (21:53 +0100)
committerMichael Niedermayer <michaelni@gmx.at>
Tue, 29 Oct 2013 20:53:08 +0000 (21:53 +0100)
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
tests/fate.sh

index 69dcdd6..f7367a9 100755 (executable)
@@ -35,7 +35,7 @@ checkout(){
 update()(
     cd ${src} || return
     case "$repo" in
-        git:*) git fetch --force; git reset --hard origin/master ;;
+        git:*) git fetch --force && git reset --hard origin/master ;;
     esac
 )