fetch fails with "fatal: couldn't find remote ref refs/notes/commits"
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
git-ubuntu |
Fix Released
|
Undecided
|
Robie Basak |
Bug Description
git ubuntu version: 0.10
Steps to reproduce:
$ git ubuntu clone exim4 exim4-gu
$ cd exim4-gu/
$ git status
On branch ubuntu/devel
nothing to commit, working tree clean
$ git ubuntu remote add sergiodj
fatal: Couldn't find remote ref refs/notes/commits
I'm able to clone his branch into a separate directory though:
$ git clone -b groovy-
Cloning into 'exim4'...
remote: Counting objects: 1642, done.
remote: Compressing objects: 100% (880/880), done.
remote: Total 1642 (delta 918), reused 1163 (delta 724)
Receiving objects: 100% (1642/1642), 3.72 MiB | 2.45 MiB/s, done.
Resolving deltas: 100% (918/918), done.
Here is the .git/config from the first git ubuntu clone:
###
[core]
bare = false
filemode = true
[remote "pkg"]
url = https:/
fetch = +refs/heads/
fetch = +refs/tags/
fetch = +refs/notes/
pushurl = ssh://<email address hidden>
tagOpt = --no-tags
[remote "bryce"]
url = https:/
fetch = +refs/heads/
fetch = +refs/tags/
fetch = +refs/notes/
pushurl = ssh://<email address hidden>
tagOpt = --no-tags
[notes]
displayRef = refs/notes/
[remote "sergiodj"]
url = https:/
fetch = +refs/heads/
fetch = +refs/tags/
fetch = +refs/notes/
pushurl = ssh://<email address hidden>
tagOpt = --no-tags
###
Here's the .git/config from directly checking out sergio's branch:
[core]
filemode = true
bare = false
[remote "origin"]
url = git+ssh://<email address hidden>
fetch = +refs/heads/
[branch "groovy-
remote = origin
merge = refs/heads/
rebase = true
Related branches
- Bryce Harrington: Approve
- Server Team CI bot: Approve (continuous-integration)
-
Diff: 133 lines (+65/-13)1 file modifiedgitubuntu/git_repository.py (+65/-13)
Workaround appears to be to comment out the notes fetch in the sergiodj remote:
[remote "sergiodj"] /git.launchpad. net/~sergiodj/ ubuntu/ +source/ exim4 *:refs/ remotes/ sergiodj/ * *:refs/ tags/sergiodj/ * commits: refs/notes/ changelog /~sergiodj/ ubuntu/ +source/ exim4
url = https:/
fetch = +refs/heads/
fetch = +refs/tags/
# fetch = +refs/notes/
pushurl = ssh://<email address hidden>
tagOpt = --no-tags
$ git fetch sergiodj -a -t /git.launchpad. net/~sergiodj/ ubuntu/ +source/ exim4 exim4-93- 15-merge -> sergiodj/ groovy- exim4-93- 15-merge
remote: Counting objects: 19, done.
remote: Compressing objects: 100% (18/18), done.
remote: Total 19 (delta 14), reused 2 (delta 1)
Unpacking objects: 100% (19/19), 8.17 KiB | 177.00 KiB/s, done.
From https:/
* [new branch] groovy-