diff options
Diffstat (limited to 'repo.go')
-rw-r--r-- | repo.go | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -46,6 +46,10 @@ func (r *Repository) Name() string { return strings.TrimSuffix(name, ".git") } +func (r *Repository) NameBytes() []byte { + return []byte(r.Name()) +} + func (r *Repository) cmd(ctx context.Context, cmdname string, args ...string) (*cmdResult, error) { args = append([]string{"--git-dir=" + string(*r), cmdname}, args...) start := time.Now() |