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
Original issue reported on code.google.com by
xiuyun...@hisilicon.com
on 25 Nov 2015 at 7:50