]> git.pld-linux.org Git - packages/rpm-build-tools.git/commitdiff
Checkout commit if specfile:commit syntax is used
authorKacper Kornet <draenog@pld-linux.org>
Wed, 23 Mar 2011 03:54:47 +0000 (03:54 +0000)
committerKacper Kornet <draenog@pld-linux.org>
Mon, 28 Mar 2011 12:29:15 +0000 (13:29 +0100)
builder.sh

index 9264d3422fbf861b71e9c42f572d95de568d1590..6138584417876dec78108a546c47e4101eae847a 100755 (executable)
@@ -784,6 +784,10 @@ get_spec() {
                fi
        fi
 
+       if [ -n "$CVSTAG" ]; then
+               GIT_WORK_TREE=$PACKAGE_DIR GIT_DIR=$PACKAGE_DIR/.git git checkout "$CVSTAG" || exit
+       fi
+
        if [ ! -f "$ASSUMED_NAME/$SPECFILE" ]; then
                Exit_error err_no_spec_in_repo
        fi
This page took 0.039321 seconds and 4 git commands to generate.