Skip to content
This repository was archived by the owner on Jan 10, 2023. It is now read-only.

Commit 7f691c4

Browse files
author
Eric Crosson
committed
Add compatibility with git back to 2.1.4
1 parent 0303f7a commit 7f691c4

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

cmd/git-ledger/add.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ func getSlug(project string) (string, error) {
3232
}
3333
session := sh.NewSession()
3434
session.SetDir(project)
35-
out, err := session.Command("git", "remote", "get-url", getRemote(project)).Output()
35+
out, err := session.Command("git", "remote", "show", "-n", getRemote(project)).Command("grep", "Fetch").Output()
3636
if err != nil {
3737
return "", err
3838
}

cmd/git-ledger/main.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import (
77
"github.com/urfave/cli"
88
)
99

10-
var VERSION = semver.MustParse("0.1.0")
10+
var VERSION = semver.MustParse("0.1.1")
1111

1212
func main() {
1313

0 commit comments

Comments
 (0)