diff options
Diffstat (limited to 'ops/besadii/main.go')
-rw-r--r-- | ops/besadii/main.go | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/ops/besadii/main.go b/ops/besadii/main.go index 0241eb84491c..460eddf26538 100644 --- a/ops/besadii/main.go +++ b/ops/besadii/main.go @@ -143,10 +143,14 @@ func parseRefUpdates() ([]refUpdate, error) { return nil, fmt.Errorf("invalid ref update: '%s'", line) } + if !strings.HasPrefix(fragments[2], "refs/heads/") { + continue + } + updates = append(updates, refUpdate{ old: fragments[0], new: fragments[1], - name: fragments[2], + name: strings.TrimPrefix(fragments[2], "refs/heads/"), }) } |