twolfson / sexy-bash-prompt

Bash prompt with colors, git statuses, and git branches.
MIT License
1.14k stars 155 forks source link

In `git init` directories with no `git log`, we list `get_git_branch` as `(no branch)` #5

Closed twolfson closed 11 years ago

twolfson commented 11 years ago

During the same discovery as #4, we are not listing the proper information. However, this has not yet been patched. We know that git status lists out the branch name to be but are still exploring commands that return the appropriate value.

todd at Euclid in ~/github/tmp-git-init2 on (no branch)△
$ git status
# On branch master
#
# Initial commit
#
nothing to commit (create/copy files and use "git add" to track)
twolfson commented 11 years ago

Fixed in 4566a60.

bernardofd commented 11 years ago

Ehm... Just installed it and:

bfd at uaiti-omni110-2 in ~/srv on (no branch)△
$ git status
# On branch master
nothing to commit (working directory clean)
twolfson commented 11 years ago

@bernardofd What version of git are you running? Also, can you clone the repo, run make test, and let me know the output?

Also, please open this in a separate issue as these might have different causes.