Skip to content

Commit

Permalink
Makefile: diff against HEAD to decide if the repo is dirty.
Browse files Browse the repository at this point in the history
  • Loading branch information
xiaq committed Feb 11, 2021
1 parent 278e7d7 commit 5f9f55e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Makefile
Expand Up @@ -6,7 +6,7 @@ get:
export GOFLAGS=-buildmode=pie; \
fi; \
go get -trimpath -ldflags \
"-X src.elv.sh/pkg/buildinfo.VersionSuffix=-dev.$$(git rev-parse HEAD)$$(git diff --quiet || printf +%s `uname -n`) \
"-X src.elv.sh/pkg/buildinfo.VersionSuffix=-dev.$$(git rev-parse HEAD)$$(git diff HEAD --quiet || printf +%s `uname -n`) \
-X src.elv.sh/pkg/buildinfo.Reproducible=true" ./cmd/elvish

generate:
Expand Down

0 comments on commit 5f9f55e

Please sign in to comment.