summaryrefslogtreecommitdiff
path: root/script/update/project/repo
diff options
context:
space:
mode:
Diffstat (limited to 'script/update/project/repo')
-rwxr-xr-xscript/update/project/repo7
1 files changed, 2 insertions, 5 deletions
diff --git a/script/update/project/repo b/script/update/project/repo
index d6eb3130..7e65ef29 100755
--- a/script/update/project/repo
+++ b/script/update/project/repo
@@ -79,11 +79,8 @@ clone_project()
git clone ${url} "${tmp_dir}" || git clone ${bkup_url} "${tmp_dir}" || \
fail "clone_project: could not download ${name}"
- (
- cd "${tmp_dir}" || fail "clone_project: tmpdir not created"
- git reset --hard ${revision} || \
- fail "clone_project: Cannot reset revision"
- )
+ git_reset_rev "${tmp_dir}" "${revision}" "fail" || \
+ fail "clone_project ${location}/: cannot reset <- ${revision}"
git_am_patches "${tmp_dir}" "${PWD}/config/${name}/patches" "fail" || \
fail "clone_project ${location}/: cannot apply patches"