repo upload error: no branches ready for upload

2,596 views
Skip to first unread message

mani chandel

unread,
Jul 31, 2014, 8:25:48 AM7/31/14
to repo-d...@googlegroups.com
Hi,

We are trying to upload a change using repo upload in test environment 
but we are getting following error.
Please suggest what are we missing here ?

~/gerrit_testsite/.repo$ pwd
/home/testuser/gerrit_testsite/.repo

~/gerrit_testsite/.repo$ repo sync
Fetching project myproject
Fetching projects: 100% (1/1), done. 
 
~/gerrit_testsite/.repo$ git branch
* master
  testbranch

~/gerrit_testsite/.repo$ repo branch
*  master                    | in all projects
   testbranch                | in all projects

~/gerrit_testsite/.repo$ repo upload
no branches ready for upload


~/gerrit_testsite/.repo$ repo upload --br=master
no branches ready for upload


~/gerrit_testsite/.repo$ repo upload --cbr
ERROR: Current branch (master) not uploadable. You may be able to type "git branch --set-upstream-to m/master" to fix your branch.
no branches ready for upload


Here is some more information:

~/gerrit_testsite/.repo/repo$ cat .git/config
[core]
    repositoryformatversion = 0
    filemode = true
    bare = false
    logallrefupdates = true
[remote "origin"]
    url = https://gerrit.googlesource.com/git-repo
    fetch = +refs/heads/*:refs/remotes/origin/*
[branch "default"]
    remote = origin
    merge = refs/heads/stable


~/gerrit_testsite/projects/myproject$ cat .git/config
[core]
    repositoryformatversion = 0
    filemode = true
    bare = false
    logallrefupdates = true
[remote "origin"]
    fetch = +refs/heads/*:refs/remotes/origin/*
    url = ssh://gerrit_admin@localhost:29418/myproject
[branch "master"]
    remote = origin
    merge = refs/heads/master




Thanks and Regards,
Mani



mani chandel

unread,
Jul 31, 2014, 9:18:23 AM7/31/14
to repo-d...@googlegroups.com
We are able to push using git push origin HEAD:refs/for/master
But wanted to test uploading with repo upload.

mani chandel

unread,
Jul 31, 2014, 9:27:15 AM7/31/14
to repo-d...@googlegroups.com
I just realized to execute this command (repo upload) from inside the myproject folder
to push change to test env.
But I am stil geeting same error.

$ repo upload 
Reply all
Reply to author
Forward
0 new messages