Repo sync error - remote does not have refs/heads/master

2,134 views
Skip to first unread message

upndwn4par

unread,
May 9, 2014, 8:34:56 PM5/9/14
to repo-d...@googlegroups.com
I recently started building from AOSP source. After a couple of months of builds I wanted to sync with AOSP, but when I tried to repo sync I got the errors below. All of my remotes have a master branch.

Any thoughts?



Fetching project platform/packages/apps/Protips
Fetching project device/asus/tilapia
Fetching projects:  98% (400/408)  Fetching project platform/external/iptables
Fetching project platform/external/eclipse-basebuilder
Fetching project platform/external/naver-fonts
Fetching project platform/prebuilts/gcc/linux-x86/arm/arm-eabi-4.6
Fetching projects:  99% (404/408)  Fetching project platform/prebuilts/gcc/darwin-x86/host/headers
Fetching projects: 100% (408/408), done. 
Traceback (most recent call last):
  File "/home/upndwn4par/android/graviton/.repo/repo/main.py", line 500, in <module>
    _Main(sys.argv[1:])
  File "/home/upndwn4par/android/graviton/.repo/repo/main.py", line 476, in _Main
    result = repo._Run(argv) or 0
  File "/home/upndwn4par/android/graviton/.repo/repo/main.py", line 155, in _Run
    result = cmd.Execute(copts, cargs)
  File "/home/upndwn4par/android/graviton/.repo/repo/subcmds/sync.py", line 675, in Execute
    project.Sync_LocalHalf(syncbuf)
  File "/home/upndwn4par/android/graviton/.repo/repo/project.py", line 1223, in Sync_LocalHalf
    if not branch.LocalMerge:
  File "/home/upndwn4par/android/graviton/.repo/repo/git_config.py", line 696, in LocalMerge
    return self.remote.ToLocal(self.merge)
  File "/home/upndwn4par/android/graviton/.repo/repo/git_config.py", line 641, in ToLocal
    raise GitError('remote %s does not have %s' % (self.name, rev))
error.GitError: remote https://github.com/upndwn4par/android_build.git does not have refs/heads/master


I found some similar issues discussed in the links below, but nothing that helped.
http://code.google.com/p/git-repo/issues/detail?id=149
https://groups.google.com/forum/#!topic/repo-discuss/lTCtfZ5B8_4
https://groups.google.com/forum/#!topic/repo-discuss/qXBILfjVV04

upndwn4par

unread,
May 11, 2014, 12:58:38 AM5/11/14
to repo-d...@googlegroups.com
Problem solved. It seems that repo doesn't like GitHub remotes that use a master branch. I just created new branches with a different name and everything synced fine.

Lovepreet Birdi

unread,
Apr 7, 2017, 5:57:19 AM4/7/17
to Repo and Gerrit Discussion
error.GitError: remote https://github.com/upndwn4par/android_build.git does n,ot have refs/heads/master


can explain me how you changed the branch names or simple way of getting out of this problem, i'm also facing the same problem while syncing the RR source code.
 
Reply all
Reply to author
Forward
0 new messages