mirror of
https://github.com/nextcloud/docker.git
synced 2025-02-05 11:08:27 +01:00
Merge pull request #479 from nextcloud/dumy-hash
Add some dummy hash for uncommited Dockerfiles
This commit is contained in:
commit
de7204ccda
1 changed files with 7 additions and 1 deletions
|
@ -11,7 +11,13 @@ cd "$(dirname "$(readlink -f "$BASH_SOURCE")")"
|
||||||
|
|
||||||
# Get the most recent commit which modified any of "$@".
|
# Get the most recent commit which modified any of "$@".
|
||||||
fileCommit() {
|
fileCommit() {
|
||||||
git log -1 --format='format:%H' HEAD -- "$@"
|
commit="$(git log -1 --format='format:%H' HEAD -- "$@")"
|
||||||
|
if [ -z "$commit" ]; then
|
||||||
|
# return some valid sha1 hash to make bashbrew happy
|
||||||
|
echo '0000000000000000000000000000000000000000'
|
||||||
|
else
|
||||||
|
echo "$commit"
|
||||||
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
# Get the most recent commit which modified "$1/Dockerfile" or any file that
|
# Get the most recent commit which modified "$1/Dockerfile" or any file that
|
||||||
|
|
Loading…
Reference in a new issue