summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xscripts/ipkg-build2
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/ipkg-build b/scripts/ipkg-build
index 2d41076..cd70c1f 100755
--- a/scripts/ipkg-build
+++ b/scripts/ipkg-build
@@ -19,7 +19,7 @@ export GZIP="-n"
# look up date of last commit
if [ -d "$TOPDIR/.git" ]; then
- TIMESTAMP=$($GIT log -1 -s --format=%ci)
+ TIMESTAMP=$(cd $TOPDIR; $GIT log -1 -s --format=%ci)
elif [ -d "$TOPDIR/.svn" ]; then
TIMESTAMP=$($SVN info "$TOPDIR" | sed -n "s/^Last Changed Date: \(.*\)/\1/p")
else