harishchoragudi / git-repo

Automatically exported from code.google.com/p/git-repo
Apache License 2.0
0 stars 0 forks source link

repo sync combine -n and -f #214

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
Affected Version:v1.12.32
Environment:
Ubuntu 12.04.1 LTS (GNU/Linux 3.2.0-29-generic x86_64)
git version 1.8.3.2

What steps will reproduce the problem?
1.Revision of project mini/test is a not existing branch in the manifest.xml.
2.run commands by python commands.getstatusoutput("repo sync -c --no-tags -f ")
3.run commands by python commands.getstatusoutput("repo sync -c --no-tags -f 
-n")

What is the expected output? What do you see instead?
The output of step 2 is:
'commands.getstatusoutput("repo sync -c --no-tags -n -q")
(256, "project .repo/manifests/\nFirst, rewinding head to replay your work on 
top of it...\nApplying: DTS:na\n\nfatal: Couldn't find remote ref 
refs/heads/master3\nfatal: Couldn't find remote ref refs/heads/master3\nerror: 
Cannot fetch mini/test\n\nerror: Exited sync due to fetch errors")'
The output of step 3 is:
'commands.getstatusoutput("repo sync -c --no-tags -n -f")
'(0, "fatal: Couldn't find remote ref refs/heads/master3\nfatal: Couldn't find 
remote ref refs/heads/master3\nerror: Cannot fetch mini/test\nwarn: 
--force-broken, continuing to sync\nFetching project repo\nFetching project 
mini/test")'
When repo sync combine "-n" and "-f" by python, the result is "0" which means 
"True".

Original issue reported on code.google.com by xiuyun...@hisilicon.com on 25 Nov 2015 at 7:50

GoogleCodeExporter commented 8 years ago
https://gerrit-review.googlesource.com/#/c/72683/

Original comment by david.pu...@sonymobile.com on 25 Nov 2015 at 9:01

GoogleCodeExporter commented 8 years ago

Original comment by david.pu...@sonymobile.com on 26 Nov 2015 at 9:32