diff options
author | Felix Fietkau <nbd@openwrt.org> | 2015-07-15 08:17:49 +0000 |
---|---|---|
committer | Felix Fietkau <nbd@openwrt.org> | 2015-07-15 08:17:49 +0000 |
commit | 8e6243d7d67956437ac832aa1222ecc6d8a757f8 (patch) | |
tree | e0a242080e2d90512cdf05f65c1fe228e9728197 /scripts/ipkg-build | |
parent | 5682fd98b7b89e63b045fa122d1624869952ea37 (diff) | |
download | master-187ad058-8e6243d7d67956437ac832aa1222ecc6d8a757f8.tar.gz master-187ad058-8e6243d7d67956437ac832aa1222ecc6d8a757f8.tar.bz2 master-187ad058-8e6243d7d67956437ac832aa1222ecc6d8a757f8.zip |
scripts/ipkg-build: fix a build regression introduced in r46360 (fixes #20082)
go to the $TOPDIR directory before trying to extract a git/svn timestamp
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@46383 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'scripts/ipkg-build')
-rwxr-xr-x | scripts/ipkg-build | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/ipkg-build b/scripts/ipkg-build index 2d410767f3..cd70c1fbba 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 |