2011-11-01 90 views
0

我mistakely創建了一個分支「沙箱」(這些「),當我嘗試刪除它,我得到這個消息:如何刪除名稱中包含無效字符的分支?

$ git push origin :」sandbox」 
remote: Traceback (most recent call last): 
remote: File  "/opt/python/domains/bitbucket.org/current/bitbucket/scripts/git/hooks/pre-receive", line 12, in <module> 
remote:  sys.exit(prehooks.githooks()) 
remote: File "/data/vol1/www/venvs/deployed/bitbucket/apps/repo2/git.py", line 1197, in wrapper 
remote:  sha = repo._repo.lookup_reference(refname).sha 
remote: pygit2.GitError: Failed to lookup reference 
remote:  - Failed to normalize name. Reference name contains invalid characters 
To ssh://[email protected]/user/git-repo.git 
! [remote rejected] 」sandbox」 (pre-receive hook declined) 
error: failed to push some refs to 'ssh://[email protected]/user/git-repo.git' 

我試圖用urxvt作爲UTF8終端。

我已經githosting上bitbucket.org

感謝 Zopper

+0

你確定你已經推了嗎? – thejh

+1

與@thejh類似,我會問你確定它創建了一個帶引號的分支?我只是嘗試了下面的'git分支「東西」'和一個名爲'something'的分支被創建 - 即**沒有引號。 –

+1

@SriSankaran,OP是專門談論U + 201D(右雙引號),而不是U + 0022(引號)。看起來bitbucket的代碼沒有正確處理UTF-8。 – jamessan

回答

0

您可以在引號(U + 0022)安全的寫倉庫的名稱。

git push origin --delete "」sandbox」" 
相關問題