Skip to content

Commit fdf59a2

Browse files
committed
[#200] Fix retrieving p4 info value
1 parent 298a882 commit fdf59a2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/vcs/p4/p4_command.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ func getP4InfoValue(key string) (value string, err error) {
8888
if err != nil {
8989
return "", err
9090
}
91-
value = strings.TrimSuffix(string(output), "\r\n")
91+
value = strings.Trim(string(output), "\r\n")
9292
if value == "" {
9393
return "", fmt.Errorf("p4 info value for %s not found", key)
9494
}

0 commit comments

Comments
 (0)