Discussion:
repo upload error: no branches ready for upload
mani chandel
2014-07-31 12:25:48 UTC
Permalink
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$ <***@01HW595640:~/gerrit_testsite/.repo$> pwd
/home/testuser/gerrit_testsite/.repo

~/gerrit_testsite/.repo$ <***@01HW595640:~/gerrit_testsite/.repo$>
repo sync
Fetching project myproject
Fetching projects: 100% (1/1), done.

~/gerrit_testsite/.repo$ <***@01HW595640:~/gerrit_testsite/.repo$> git
branch
* master
testbranch

~/gerrit_testsite/.repo$ <***@01HW595640:~/gerrit_testsite/.repo$>
repo branch
* master | in all projects
testbranch | in all projects

~/gerrit_testsite/.repo$ <***@01HW595640:~/gerrit_testsite/.repo$>
repo upload
no branches ready for upload

~/gerrit_testsite/.repo$ <***@01HW595640:~/gerrit_testsite/.repo$>
repo upload --br=master
no branches ready for upload

~/gerrit_testsite/.repo$ <***@01HW595640:~/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$
<***@01HW595640:~/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://***@localhost:29418/myproject
[branch "master"]
remote = origin
merge = refs/heads/master



Thanks and Regards,
Mani
--
--
To unsubscribe, email repo-discuss+***@googlegroups.com
More info at http://groups.google.com/group/repo-discuss?hl=en

---
You received this message because you are subscribed to the Google Groups "Repo and Gerrit Discussion" group.
To unsubscribe from this group and stop receiving emails from it, send an email to repo-discuss+***@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
mani chandel
2014-07-31 13:18:23 UTC
Permalink
We are able to push using git push origin HEAD:refs/for/master
But wanted to test uploading with repo upload.
Post by mani chandel
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 ?
/home/testuser/gerrit_testsite/.repo
repo sync
Fetching project myproject
Fetching projects: 100% (1/1), done.
git branch
* master
testbranch
repo branch
* master | in all projects
testbranch | in all projects
repo upload
no branches ready for upload
repo upload --br=master
no branches ready for upload
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
~/gerrit_testsite/.repo/repo$
[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/*
[branch "master"]
remote = origin
merge = refs/heads/master
Thanks and Regards,
Mani
--
--
To unsubscribe, email repo-discuss+***@googlegroups.com
More info at http://groups.google.com/group/repo-discuss?hl=en

---
You received this message because you are subscribed to the Google Groups "Repo and Gerrit Discussion" group.
To unsubscribe from this group and stop receiving emails from it, send an email to repo-discuss+***@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
mani chandel
2014-07-31 13:27:15 UTC
Permalink
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.

$ <***@01HW595640:~/gerrit_testsite/.repo$> repo upload
no branches ready for upload
--
--
To unsubscribe, email repo-discuss+***@googlegroups.com
More info at http://groups.google.com/group/repo-discuss?hl=en

---
You received this message because you are subscribed to the Google Groups "Repo and Gerrit Discussion" group.
To unsubscribe from this group and stop receiving emails from it, send an email to repo-discuss+***@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Loading...