[packages/rpm-build-tools] relup: fix commit part

glen glen at pld-linux.org
Tue Aug 21 22:27:20 CEST 2012


commit 268416996afbbe65e2b5ebec146f2c4de3ebb454
Author: Elan Ruusamäe <glen at delfi.ee>
Date:   Tue Aug 21 23:27:18 2012 +0300

    relup: fix commit part

 relup.sh | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)
---
diff --git a/relup.sh b/relup.sh
index a60c9be..852bcee 100755
--- a/relup.sh
+++ b/relup.sh
@@ -140,6 +140,9 @@ for pkg in "$@"; do
 	# pkgdir: package/
 	pkgdir=${spec%/*}
 
+	# specname: only spec filename
+	specname=${spec##*/}
+
 	# start real work
 	echo "$pkg ..."
 
@@ -168,7 +171,7 @@ for pkg in "$@"; do
 	echo git commit -m "$msg" $spec
 	if [ "$test" != 1 ]; then
 		cd $pkgdir
-		git commit -m "$msg" $spec
+		git commit -m "$msg" $specname
 		git push
 		cd ..
 	fi


More information about the pld-cvs-commit mailing list