diff --git a/include/git.sh b/include/git.sh index 3802e31..f65fe85 100755 --- a/include/git.sh +++ b/include/git.sh @@ -5,7 +5,7 @@ eval `setvars "" _target rev loc url bkup_url depend tree_depend xtree mdir \ subhash subrepo subrepo_bkup subfile subfile_bkup` -fetch_project_trees() +fetch_targets() { _target="$target" [ ! -d "src/$project/$project" ] && x_ mkdir -p "src/$project" \ diff --git a/script/trees b/script/trees index d9dfac0..739f526 100755 --- a/script/trees +++ b/script/trees @@ -125,7 +125,7 @@ handle_src_tree() target_dir="$cfgsdir/$target" if [ "$mode" = "fetch" ]; then [ -f "CHANGELOG" ] && return 1 - fetch_project_trees; return 1 + fetch_targets; return 1 fi load_project_config "$target_dir" || return 1