mirror of
https://github.com/kata-containers/kata-containers.git
synced 2025-07-21 18:53:30 +00:00
packaging: Use git abbreviated hash
This will make it easier to build images that rely on several
directories hashes.
Signed-off-by: Fabiano Fidêncio <fabiano.fidencio@intel.com>
(cherry picked from commit 98097c96de
)
This commit is contained in:
parent
c22fdb46e3
commit
b2e432c024
@ -123,7 +123,7 @@ get_last_modification() {
|
||||
dirty=""
|
||||
[ $(git status --porcelain | grep "${file#${repo_root_dir}/}" | wc -l) -gt 0 ] && dirty="-dirty"
|
||||
|
||||
echo "$(git log -1 --pretty=format:"%H" ${file})${dirty}"
|
||||
echo "$(git log -1 --pretty=format:"%h" ${file})${dirty}"
|
||||
popd &> /dev/null
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user