summaryrefslogtreecommitdiff
path: root/include/git.sh
diff options
context:
space:
mode:
Diffstat (limited to 'include/git.sh')
-rwxr-xr-xinclude/git.sh11
1 files changed, 2 insertions, 9 deletions
diff --git a/include/git.sh b/include/git.sh
index bc818b19..5111d09a 100755
--- a/include/git.sh
+++ b/include/git.sh
@@ -7,7 +7,8 @@ eval "$(setvars "" _target rev _xm loc url bkup_url depend tree_depend xtree)"
fetch_project_trees()
{
_target="${target}"
- [ -d "src/${project}/${project}" ] || fetch_from_upstream
+ [ ! -d "src/${project}/${project}" ] && x_ mkdir -p "src/${project}" \
+ && fetch_project_repo "${project}"
fetch_config
if [ -d "src/${project}/${tree}" ]; then
printf "download/%s %s (%s): exists\n" \
@@ -17,14 +18,6 @@ fetch_project_trees()
prepare_new_tree
}
-fetch_from_upstream()
-{
- [ -d "src/${project}/${project}" ] && return 0
-
- x_ mkdir -p "src/${project}"
- fetch_project_repo "${project}"
-}
-
fetch_config()
{
rm -f "${cfgsdir}/"*/seen || $err "fetch_config ${cfgsdir}: !rm seen"