aboutsummaryrefslogtreecommitdiffstats
path: root/layerindex/update.py
diff options
context:
space:
mode:
authorRobert Yang <liezhi.yang@windriver.com>2018-07-06 12:31:06 +0800
committerRobert Yang <liezhi.yang@windriver.com>2018-07-09 12:06:31 +0800
commit1bcda59f1ee72f8762a634c11808f226975c8c97 (patch)
tree158cc8237c509220e4744c2f186195e9ff902e19 /layerindex/update.py
parenta02cf1b6d04658216eadffc817a651dc47fcfbfb (diff)
downloadopenembedded-core-contrib-1bcda59f1ee72f8762a634c11808f226975c8c97.tar.gz
utils.py: fix checkout_repo when no HEAD
Fixed: $ git clone <url> warning: remote HEAD refers to nonexistent ref, unable to checkout. $ git rev-parse HEAD HEAD fatal: ambiguous argument 'HEAD': unknown revision or path not in the working tree. Use '--' to separate paths from revisions, like this: 'git <command> [<revision>...] -- [<file>...]' Catch the error and avoid that. And use "git reset --hard" to replace of "git reset --hard HEAD", HEAD is default for git reset, so they are the same, but the later one reports error when remote HEAD doesn't exist: $ git reset --hard HEAD fatal: ambiguous argument 'HEAD': unknown revision or path not in the working tree. [snip] $ git reset --hard No errors. Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Diffstat (limited to 'layerindex/update.py')
0 files changed, 0 insertions, 0 deletions