Skip to content
This repository has been archived by the owner on Dec 7, 2023. It is now read-only.

is_git_repo: Return without echo #801

Merged
merged 1 commit into from
Mar 8, 2021

Conversation

darkowlzz
Copy link
Contributor

This was resulting in GIT_VERSION to be
".git v0.8.0-87+b5214a06643efb-dirty" and causing errors like
/bin/bash: line 1: v0.8.0-87+b5214a06643efb-dirty: command not found
when building ignite.

Instead of echo-ing, this returns 0 - true from the function.

To reproduce, run make and notice the first line:

$ make
/usr/bin/bash: line 1: v0.8.0-87+b5214a06643efb-dirty: command not found
make GOARCH=amd64 ignite ignited ignite-spawn
make[1]: Entering directory '~/go/src/github.com/weaveworks/ignite'
/usr/bin/bash: line 1: v0.8.0-87+b5214a06643efb-dirty: command not found
make go-make TARGETS="bin/amd64/ignite"
...

Introduced in e3add4e recently where we were trying to help improve the AUR package build from tarballs.

This was resulting in GIT_VERSION to be
".git v0.8.0-87+b5214a06643efb-dirty" and causing errors like
`/bin/bash: line 1: v0.8.0-87+b5214a06643efb-dirty: command not found`
when building ignite.

Instead of echo-ing, this returns 0 - true from the function.
@stealthybox stealthybox merged commit 856c3a8 into weaveworks:master Mar 8, 2021
@stealthybox
Copy link
Contributor

tyvm for my shortsighted bashisms

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants