Skip to content
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

Tracking Branch for branch containing a hash sign is wrong #550

Closed
msiemens opened this issue Nov 3, 2016 · 2 comments
Closed

Tracking Branch for branch containing a hash sign is wrong #550

msiemens opened this issue Nov 3, 2016 · 2 comments

Comments

@msiemens
Copy link
Contributor

msiemens commented Nov 3, 2016

When having a branch which has a remote tracking branch containing a hash sign (like features/#123), git will store it in the config file surrounded with quotes. Now, when requesting the branch's tracking branch with Head(...).tracking_branch(), it doesn't remove the quotes and returns something like origin/"refs/heads/feature#123".

Example .git/config file:

[core]
	repositoryformatversion = 0
	filemode = true
	bare = false
	logallrefupdates = true
	ignorecase = true
	precomposeunicode = true
[remote "origin"]
	url = /var/folders/n8/s89552kd2s9_v1lcgbgwl07r0000gn/T/PyGitUp.2r0xiioq/master.issue-55/.git
	fetch = +refs/heads/*:refs/remotes/origin/*
[branch "feature#123"]
	remote = origin
	merge = "refs/heads/feature#234"

Reported in msiemens/PyGitUp#55

@Byron
Copy link
Member

Byron commented Dec 8, 2016

Thanks for posting the issue! It was nicely reproducible, and a new release with the fix should land today.

@msiemens
Copy link
Contributor Author

msiemens commented Dec 8, 2016

Thank you, as always a pleasure to work with you guys!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

No branches or pull requests

3 participants