aboutsummaryrefslogtreecommitdiff
path: root/libs
diff options
context:
space:
mode:
Diffstat (limited to 'libs')
-rwxr-xr-xlibs/git20
1 files changed, 10 insertions, 10 deletions
diff --git a/libs/git b/libs/git
index 48499921..5f48005d 100755
--- a/libs/git
+++ b/libs/git
@@ -228,25 +228,25 @@ git_project_check() {
}
git_project_patch_recursive() {
- local project="$1"
- local repository="$2"
- local branch="$3"
- local path="${4:-.}"
+ local project=$1
+ local repository=$2
+ local branch=$3
+ local path=$4
- local repository_path="$(git_project_repository_path "$repository")"
- local project_path="$(project_path "$project")"
- local patches_path="$project_path/$PATCHES/$path"
+ local repository_path=$(git_project_repository_path "$repository")
+ local project_path=$(project_path "$project")
+ local patches_path=$project_path/$PATCHES/$path
- if ! [[ -d "$patches_path" ]]; then
+ if ! [[ -d $project_path/$PATCHES ]]; then
return
fi
- if [[ "$path" != "." ]]; then
+ if [[ $path != . ]]; then
git_project_patch_recursive "$project" "$repository" "$branch" "$(dirname "$path")"
fi
for patch in "$patches_path"/[!.]*.@(patch|diff); do
- if [[ "${patch##*.}" == "patch" ]]; then
+ if [[ ${patch##*.} == patch ]]; then
git_patch "$repository_path" "$branch" "$patch"
else
diff_patch_file "$repository_path" "$patch"