[X2Go-Commits] [buildscripts] 01/01: build-rpm-package: be in the correct directory when creating the Changelog.gitlog file

git-admin at x2go.org git-admin at x2go.org
Sun Mar 9 12:15:28 CET 2014


This is an automated email from the git hooks/post-receive script.

x2go pushed a commit to branch master
in repository buildscripts.

commit 1191f525ff54ac3827ce16d7b7e098c23036b343
Author: Mike Gabriel <mike.gabriel at das-netzwerkteam.de>
Date:   Sun Mar 9 12:15:04 2014 +0100

    build-rpm-package: be in the correct directory when creating the Changelog.gitlog file
---
 bin/build-rpm-package |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/bin/build-rpm-package b/bin/build-rpm-package
index 997f94f..96886fb 100755
--- a/bin/build-rpm-package
+++ b/bin/build-rpm-package
@@ -173,7 +173,7 @@ build_packages() {
 				GITREV=$(cd $PROJECT && gitrevno && cd - 1>/dev/null)
 
 				# create git changelog immediately prior to building the SRPM package
-				git --no-pager log --since "2 years ago" --format="%ai %aN (%h) %n%n%x09*%w(68,0,10) %s%d%n" > ChangeLog.gitlog
+				cd $PROJECT && git --no-pager log --since "2 years ago" --format="%ai %aN (%h) %n%n%x09*%w(68,0,10) %s%d%n" > ChangeLog.gitlog && cd - 1>/dev/null
 
 				rm -Rf "$PROJECT/.git"
 				mv $PROJECT/$PROJECT.spec .

--
Alioth's /srv/git/_hooks_/post-receive-email on /srv/git/code.x2go.org/buildscripts.git



More information about the x2go-commits mailing list