summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2015-07-15 08:17:49 +0000
committerFelix Fietkau <nbd@openwrt.org>2015-07-15 08:17:49 +0000
commit7f359e52ceedfd2d28ac66e1e457b881aabf0879 (patch)
treecf06da389eb03bc3605bff0ecb76ae24d5cc353d
parentb04b1ca93381886f2d2caae94d91e6e81212a835 (diff)
downloadmtk-20170518-7f359e52ceedfd2d28ac66e1e457b881aabf0879.zip
mtk-20170518-7f359e52ceedfd2d28ac66e1e457b881aabf0879.tar.gz
mtk-20170518-7f359e52ceedfd2d28ac66e1e457b881aabf0879.tar.bz2
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> SVN-Revision: 46383
-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