]> git.pld-linux.org Git - packages/rpm-build-tools.git/commitdiff
builder: avoid printing git hash
authorElan Ruusamäe <glen@pld-linux.org>
Sat, 2 Feb 2019 21:24:10 +0000 (23:24 +0200)
committerElan Ruusamäe <glen@pld-linux.org>
Sat, 2 Feb 2019 21:24:10 +0000 (23:24 +0200)
builder.sh

index 7d64b25e71b53f008b8583bd88c3358ad42b5664..7612557d0823bcfac1e581b1f013e778010fcf6f 100755 (executable)
@@ -990,7 +990,7 @@ get_spec() {
                                        git clone $IPOPT -o $REMOTE_PLD ${GIT_SERVER}/${PACKAGES_DIR}/${ASSUMED_NAME}.git || {
                                                # softfail if new package, i.e not yet added to PLD rep
                                                [ ! -f "$PACKAGE_DIR/$SPECFILE" ] && Exit_error err_no_spec_in_repo
-                                               echo "Warning: package not in GIT - assuming new package"
+                                               echo "Warning: package not in Git - assuming new package"
                                                NOCVSSPEC="yes"
                                        }
                                        git config --local --add "remote.$REMOTE_PLD.fetch" 'refs/notes/*:refs/notes/*'
@@ -1050,7 +1050,7 @@ get_spec() {
        fi
 
        if [ -n "$CVSTAG" ]; then
-               if git rev-parse --verify -q "$CVSTAG"; then
+               if git rev-parse --verify -q "$CVSTAG" >/dev/null; then
                        git checkout "$CVSTAG" --
                elif git rev-parse --verify -q "refs/remotes/${REMOTE_PLD}/$CVSTAG"; then
                        git checkout -t "refs/remotes/${REMOTE_PLD}/$CVSTAG" > /dev/null
@@ -1058,7 +1058,8 @@ get_spec() {
                if [ $(git rev-parse "$CVSTAG") != $(git rev-parse HEAD) ]; then
                        Exit_error "err_no_checkut" "$CVSTAG"
                fi
-                       git merge --ff-only '@{u}'
+
+               git merge --ff-only '@{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
This page took 0.073932 seconds and 4 git commands to generate.