diff options
Diffstat (limited to 'scripts/create-pull-request')
-rwxr-xr-x | scripts/create-pull-request | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/scripts/create-pull-request b/scripts/create-pull-request index 216edfd751..be493795b5 100755 --- a/scripts/create-pull-request +++ b/scripts/create-pull-request | |||
@@ -177,12 +177,15 @@ mkdir $ODIR | |||
177 | 177 | ||
178 | if [ -n "$RELDIR" ]; then | 178 | if [ -n "$RELDIR" ]; then |
179 | ODIR=$(realpath $ODIR) | 179 | ODIR=$(realpath $ODIR) |
180 | extraopts="--relative=$RELDIR" | 180 | pushd $RELDIR > /dev/null |
181 | extraopts="--relative" | ||
181 | fi | 182 | fi |
182 | 183 | ||
183 | # Generate the patches and cover letter | 184 | # Generate the patches and cover letter |
184 | git format-patch $extraopts -M40 --subject-prefix="$PREFIX" -n -o $ODIR --thread=shallow --cover-letter $RELATIVE_TO..$COMMIT_ID > /dev/null | 185 | git format-patch $extraopts -M40 --subject-prefix="$PREFIX" -n -o $ODIR --thread=shallow --cover-letter $RELATIVE_TO..$COMMIT_ID > /dev/null |
185 | 186 | ||
187 | [ -n "$RELDIR" ] && popd > /dev/null | ||
188 | |||
186 | # Customize the cover letter | 189 | # Customize the cover letter |
187 | CL="$ODIR/0000-cover-letter.patch" | 190 | CL="$ODIR/0000-cover-letter.patch" |
188 | PM="$ODIR/pull-msg" | 191 | PM="$ODIR/pull-msg" |