aboutsummaryrefslogtreecommitdiffstats
path: root/bin/bitbake-selftest
diff options
context:
space:
mode:
authorPaulo Neves <ptsneves@gmail.com>2018-08-27 21:38:59 +0200
committerRichard Purdie <richard.purdie@linuxfoundation.org>2018-08-28 00:04:16 +0100
commit9c86c582a10c9b23abad7d34b6cbf12f7086294d (patch)
tree429e0f94fff7b164107a3dab44414dcade5d130a /bin/bitbake-selftest
parent8ce51fbd92ab42365a38e0c1c260bb4979377a89 (diff)
downloadbitbake-contrib-9c86c582a10c9b23abad7d34b6cbf12f7086294d.tar.gz
fetcher: Fixed remote removal not throwing exception.
Before this fix it is assumed that the removal of the remote can only fail because there is not remote to remove. This is a false assumption. Example error which would be ignored: git -c core.fsyncobjectfiles=0 remote rm origin failed with exit code 1, output: Note: A branch outside the refs/remotes/ hierarchy was not removed; to delete it, use: git branch -d master error: could not lock config file config error: Could not remove config section 'remote.origin' Due to the masking of this error a stranger error will be presented to the user, because this time we do not mask the exception: git -c core.fsyncobjectfiles=0 remote add --mirror=fetch origin https://github.com/ptsneves/tl-wn722.git failed with exit code 128, output: fatal: remote origin already exists. The most likely reason that the remote cannot be removed nor modified is that the DL_DIR/git2 does not have permissions compatible with the user running bitbake. This commit fixes: https://bugzilla.yoctoproject.org/show_bug.cgi?id=12728 Signed-off-by: Paulo Neves <ptsneves@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bin/bitbake-selftest')
0 files changed, 0 insertions, 0 deletions