good morning!!!!

Skip to content
Snippets Groups Projects
Commit 52ad848b authored by ferhat elmas's avatar ferhat elmas Committed by Péter Szilágyi
Browse files

internal/build: fix usage of strings.TrimLeft (#16066)

parent 40656953
No related branches found
No related tags found
No related merge requests found
...@@ -94,7 +94,7 @@ func LocalEnv() Environment { ...@@ -94,7 +94,7 @@ func LocalEnv() Environment {
} }
if env.Branch == "" { if env.Branch == "" {
if head != "HEAD" { if head != "HEAD" {
env.Branch = strings.TrimLeft(head, "refs/heads/") env.Branch = strings.TrimPrefix(head, "refs/heads/")
} }
} }
if info, err := os.Stat(".git/objects"); err == nil && info.IsDir() && env.Tag == "" { if info, err := os.Stat(".git/objects"); err == nil && info.IsDir() && env.Tag == "" {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment