mirror of
https://github.com/linuxkit/linuxkit.git
synced 2026-04-04 18:59:55 +00:00
The current rune for $(HASH) returns nothing with the Jessie version of git (2.1.4). Using `--full-tree` works corectly but requires an absolute path (else it produces e.g. "fatal: ../init: '../init' is outside repository"). Both `ls-tree` and `diff-index` are happy with a full absolute path, which simplifies things since we can use `$(CURDIR)` directly. Tested with a dirty `pkg/init` on both Jessie (git 2.1.4) and Stretch (git 2.11.0) with the following command, which produces identical output in both cases: $ for pkg in init containerd ; do make -C pkg/$pkg --no-print-directory show-tag; ( cd pkg/$pkg && make show-tag ); done linuxkit/init:36c56f0664d49c5a6adc1120d1bf5ba6ac30b389-dirty linuxkit/init:36c56f0664d49c5a6adc1120d1bf5ba6ac30b389-dirty linuxkit/containerd:1e3e8f207421de8deac8cedc26a138d6b1661a0d linuxkit/containerd:1e3e8f207421de8deac8cedc26a138d6b1661a0d Signed-off-by: Ian Campbell <ian.campbell@docker.com>