]> git.pld-linux.org Git - packages/rpm-build-tools.git/commitdiff
builder: Don't try to merge with upstream when --no-cvs-specs is specified
authorKacper Kornet <draenog@pld-linux.org>
Wed, 5 Sep 2012 02:23:33 +0000 (04:23 +0200)
committerKacper Kornet <draenog@pld-linux.org>
Wed, 5 Sep 2012 02:38:47 +0000 (04:38 +0200)
builder.sh

index 2529aa8765161744735845903a36e78e4d9b7e1d..3b9e03efd18ca557644bed889c989b90895492db 100755 (executable)
@@ -958,8 +958,8 @@ get_spec() {
                if [ $(git rev-parse "$CVSTAG") != $(git rev-parse HEAD) ]; then
                        Exit_error "err_no_checkut" "$CVSTAG"
                fi
-               git symbolic-ref -q HEAD > /dev/null &&
                        git merge '@{u}'
+               git symbolic-ref -q HEAD > /dev/null && [ "$NOCVSSPEC" != "yes" ] &&
                if [ -n "$CVSDATE" ]; then
                        git checkout $(git rev-list -n1 --before="'$CVSDATE'" $CVSTAG) || exit 1
                fi
This page took 1.131975 seconds and 4 git commands to generate.