Skip to content

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

@msiemens

Description

@msiemens

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      pFad - Phonifier reborn

      Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

      Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


      Alternative Proxies:

      Alternative Proxy

      pFad Proxy

      pFad v3 Proxy

      pFad v4 Proxy