mirror of
https://gitea.com/Lydanne/buildx.git
synced 2025-07-10 13:37:08 +08:00
Remove git warning: buildx/1633
Signed-off-by: David Gageot <david.gageot@docker.com>
This commit is contained in:
@ -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) {
|
||||
|
Reference in New Issue
Block a user