aboutsummaryrefslogtreecommitdiff
path: root/libs
diff options
context:
space:
mode:
Diffstat (limited to 'libs')
-rwxr-xr-xlibs/git20
1 files changed, 2 insertions, 18 deletions
diff --git a/libs/git b/libs/git
index 3d9facee..48499921 100755
--- a/libs/git
+++ b/libs/git
@@ -344,13 +344,6 @@ git_project_prepare_patch() {
branch="$branch-$argument"
fi
- local revision_path="$configs_path/$path/$REVISION"
-
- if ! [[ -f "$revision_path" ]]
- then
- continue
- fi
-
prepare_branch=$branch
prepare_path=$path
done
@@ -392,13 +385,11 @@ git_project_prepare_revision() {
local revision_path="$configs_path/$path/$REVISION"
- if ! [[ -f "$revision_path" ]]
- then
- continue
+ if [[ -f $revision_path ]]; then
+ prepare_revision=$(< "$revision_path")
fi
prepare_branch=$branch
- prepare_revision=$(cat "$revision_path")
done
if [[ -n "$prepare_branch" ]]
@@ -435,13 +426,6 @@ git_project_prepare_check() {
branch="$branch-$argument"
fi
- local revision_path="$configs_path/$path/$REVISION"
-
- if ! [[ -f "$revision_path" ]]
- then
- continue
- fi
-
prepare_branch=$branch
done