-
Notifications
You must be signed in to change notification settings - Fork 10
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Branch name for gs
#15
Comments
@powelleric really? if I changed |
Thanks for your response, @shinriyo. Great avatar BTW! Hmm, I wonder if we could have different versions of git or something.... What does it look like for you to do Here is what is happening for me.
If it turns out that different git versions are causing this, we could try something like this: |
I don't get the hash in front of my output:
That means
|
@aweibell I figured it was going to be something along these lines. I can actually observe both behaviors between my Mac and Ubuntu server. (The Mac doesn't have breeze on it yet so I didn't realize this until now.) I've proposed a solution below that uses Mac
Ubuntu
|
I think this has been resolved by #38; it uses |
I was getting some funny output from
gs
. The branch was always listed as 'branch'. Looking in the function, it seems like the answer is to use the fourth field fromcut
.Changing line 19 from
echo $branch_name|cut -d ' ' -f3
to:
echo $branch_name|cut -d ' ' -f4
seems to have fixed it.
Seems to make sense because when you parse the first line of
git status
, the branch name is the fourth column of that line:# On branch master
The text was updated successfully, but these errors were encountered: