Skip to content

Commit

Permalink
0.0.13
Browse files Browse the repository at this point in the history
  • Loading branch information
simonharrer committed Apr 24, 2020
1 parent 0d75903 commit 986b558
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# 0.0.13
- Fixes bug that prevented users wih git versions below 2.21 to be able to use 'mob'.

5 changes: 3 additions & 2 deletions mob.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import (
"time"
)

const versionNumber = "0.0.12"
const versionNumber = "0.0.13"

var wipBranch = "mob-session" // override with MOB_WIP_BRANCH environment variable
var baseBranch = "master" // override with MOB_BASE_BRANCH environment variable
Expand Down Expand Up @@ -394,7 +394,8 @@ func gitRemoteBranches() string {
}

func gitCurrentBranch() string {
return strings.TrimSpace(silentgit("branch", "--show-current"))
// upgrade to branch --show-current when git v2.21 is more widely spread
return strings.TrimSpace(silentgit("rev-parse", "--abbrev-ref", "HEAD"))
}

func gitUserName() string {
Expand Down

0 comments on commit 986b558

Please sign in to comment.