diff options
author | Natanael Copa <ncopa@alpinelinux.org> | 2019-11-07 14:11:10 +0000 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2019-11-07 14:40:55 +0000 |
commit | 1cfbdf688c4ea6bd7ecdbc4e20707885f56ae122 (patch) | |
tree | c5bb172497a14fac35aed169c3da1daddba7d7a7 | |
parent | f04a2ee34b28a38c4349ef1f94686a07afce730f (diff) | |
download | abuild-1cfbdf688c4ea6bd7ecdbc4e20707885f56ae122.tar.gz abuild-1cfbdf688c4ea6bd7ecdbc4e20707885f56ae122.tar.bz2 abuild-1cfbdf688c4ea6bd7ecdbc4e20707885f56ae122.tar.xz abuild-1cfbdf688c4ea6bd7ecdbc4e20707885f56ae122.zip |
abuild: fix git_* functions
Add -- to explicitly separate out the file path.
Let git_last_commit_epoch take an option with the hash.
-rw-r--r-- | abuild.in | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -859,17 +859,17 @@ prepare_language_packs() { # echo '-dirty' if git is not clean git_dirty() { - [ $($git status -s "$startdir" | wc -l) -ne 0 ] && echo "-dirty" + [ $($git status -s -- "$startdir" | wc -l) -ne 0 ] && echo "-dirty" } # echo last commit hash id git_last_commit() { - $git log --format=oneline -n 1 "$startdir" | awk '{print $1}' + $git log --format=oneline -n 1 -- "$startdir" | awk '{print $1}' } # date of last commit git_last_commit_epoch() { - $git log -1 --format=%cd --date=unix -- "$startdir" + $git log -1 --format=%cd --date=unix $1 -- "$startdir" } get_maintainer() { |