Skip to content

Commit

Permalink
Merge pull request #99 from felipecrs/fix-default-topic
Browse files Browse the repository at this point in the history
Fix default branch on topic-base-branch
  • Loading branch information
joelparkerhenderson committed Oct 4, 2023
2 parents 31a45d3 + 1e9450c commit da2f442
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
2 changes: 1 addition & 1 deletion doc/git-topic-base-branch/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
Git alias:

```git
topic-base-branch = "!git config --get init.topicBaseBranchName || git config --get init.defaultBranch"
topic-base-branch = "!git config --get init.topicBaseBranchName || git default-branch"
```

Example:
Expand Down
4 changes: 1 addition & 3 deletions gitalias.txt
Original file line number Diff line number Diff line change
Expand Up @@ -1603,9 +1603,7 @@
#
# Thanks to https://github.com/gwjo
topic-base-branch = "!f(){ \
git config --get init.topicBaseBranchName || printf '%s\n' main; \
};f"
topic-base-branch = "!git config --get init.topicBaseBranchName || git default-branch"
# Start a topic branch.
#
Expand Down

0 comments on commit da2f442

Please sign in to comment.