Remove git warning: buildx/1633

Signed-off-by: David Gageot <david.gageot@docker.com>
This commit is contained in:
David Gageot
2023-02-16 07:34:54 +01:00
parent 1f73f4fd5d
commit d4a4aaf509
3 changed files with 25 additions and 2 deletions

View File

@ -80,11 +80,11 @@ func (c *Git) RemoteURL() (string, error) {
}
func (c *Git) FullCommit() (string, error) {
return c.clean(c.run("show", "--format=%H", "HEAD", "--quiet"))
return c.clean(c.run("show", "--format=%H", "HEAD", "--quiet", "--"))
}
func (c *Git) ShortCommit() (string, error) {
return c.clean(c.run("show", "--format=%h", "HEAD", "--quiet"))
return c.clean(c.run("show", "--format=%h", "HEAD", "--quiet", "--"))
}
func (c *Git) Tag() (string, error) {