Leakfix.
* rj/add-i-leak-fix:
add: plug a leak on interactive_add
add-patch: plug a leak handling the '/' command
add-interactive: plug a leak in get_untracked_files
apply: plug a leak in apply_data
Demote a BUG() to an die() when the failure from vsnprintf() may
not be due to a programmer error.
* rs/vsnprintf-failure-is-not-a-bug:
don't report vsnprintf(3) error as bug
GOPATH-based builds and non module-aware builds are being deprecated
by golang upstream, which currently causes this to fail. This adds a
barebones mod file to fix the build.
The `persistent-https` code hasn't been touched for a long time but
I assume this is preferable to simply removing it from the codebase.
Before this change:
```
case $(go version) in \
"go version go"1.[0-5].*) EQ=" " ;; *) EQ="=" ;; esac && \
go build -o git-remote-persistent-https \
-ldflags "-X main._BUILD_EMBED_LABEL${EQ}"
go: cannot find main module, but found .git/config in ../git
to create a module there, run:
cd ../.. && go mod init
make: *** [git-remote-persistent-https] Error 1
```
Ref: https://blog.golang.org/go116-module-changes.
Signed-off-by: Dominyk Tiller <dominyktiller@gmail.com>
2021-03-26 17:43:17 +00:00
18 changed files with 31 additions and 8 deletions