Skip to content

Commit

Permalink
Add more detailed comment
Browse files Browse the repository at this point in the history
  • Loading branch information
mmena1 committed Mar 22, 2024
1 parent 14cb1b4 commit bd0ad7d
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ function __git.default_branch
# cleaning up any references that doesn't exist anymore.
git remote update $remote --prune

# Get the default branch from the remote
# Extract the default branch name from the 'HEAD branch' line of the 'git remote show' output
set -l default_branch (git remote show $remote | grep 'HEAD branch' | sed 's/.*: //')
if test -z "$default_branch"
echo "Could not determine the default branch from remote, defaulting to '$git_default_branch'"
Expand Down

0 comments on commit bd0ad7d

Please sign in to comment.