aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorMichael Muré <batolettre@gmail.com>2019-03-01 23:17:57 +0100
committerGitHub <noreply@github.com>2019-03-01 23:17:57 +0100
commit7260ca05bc3588c0572887a7d8f1b897c7fc13da (patch)
tree66854358df3cb9de651f7688556ec5a4b8ab1868 /Makefile
parent0aefae6fcca5786f2c898029c3d6282f760f2c63 (diff)
parentb6bed784e5664819250aac20b2b9690879ee6ab1 (diff)
downloadgit-bug-7260ca05bc3588c0572887a7d8f1b897c7fc13da.tar.gz
Merge pull request #89 from MichaelMure/identity
WIP identity in git
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile11
1 files changed, 8 insertions, 3 deletions
diff --git a/Makefile b/Makefile
index 3c6207c7..94a820d5 100644
--- a/Makefile
+++ b/Makefile
@@ -19,7 +19,7 @@ debug-build:
install:
go generate
- go install .
+ go install -ldflags "$(LDFLAGS)" .
test:
go test -bench=. ./...
@@ -30,14 +30,19 @@ pack-webui:
# produce a build that will fetch the web UI from the filesystem instead of from the binary
debug-webui:
- go build -tags=debugwebui
+ go build -ldflags "$(LDFLAGS)" -tags=debugwebui
clean-local-bugs:
git for-each-ref refs/bugs/ | cut -f 2 | xargs -r -n 1 git update-ref -d
git for-each-ref refs/remotes/origin/bugs/ | cut -f 2 | xargs -r -n 1 git update-ref -d
- rm -f .git/git-bug/cache
+ rm -f .git/git-bug/bug-cache
clean-remote-bugs:
git ls-remote origin "refs/bugs/*" | cut -f 2 | xargs -r git push origin -d
+clean-local-identities:
+ git for-each-ref refs/identities/ | cut -f 2 | xargs -r -n 1 git update-ref -d
+ git for-each-ref refs/remotes/origin/identities/ | cut -f 2 | xargs -r -n 1 git update-ref -d
+ rm -f .git/git-bug/identity-cache
+
.PHONY: build install test pack-webui debug-webui clean-local-bugs clean-remote-bugs