summaryrefslogtreecommitdiff
path: root/scripts/create-pull-request
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/create-pull-request')
-rwxr-xr-xscripts/create-pull-request7
1 files changed, 4 insertions, 3 deletions
diff --git a/scripts/create-pull-request b/scripts/create-pull-request
index be493795b5..19ba58869f 100755
--- a/scripts/create-pull-request
+++ b/scripts/create-pull-request
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/bin/sh
#
# Copyright (c) 2010-2013, Intel Corporation.
# All Rights Reserved
@@ -177,14 +177,15 @@ mkdir $ODIR
if [ -n "$RELDIR" ]; then
ODIR=$(realpath $ODIR)
- pushd $RELDIR > /dev/null
+ pdir=$(pwd)
+ cd $RELDIR
extraopts="--relative"
fi
# Generate the patches and cover letter
git format-patch $extraopts -M40 --subject-prefix="$PREFIX" -n -o $ODIR --thread=shallow --cover-letter $RELATIVE_TO..$COMMIT_ID > /dev/null
-[ -n "$RELDIR" ] && popd > /dev/null
+[ -n "$RELDIR" ] && cd $pdir
# Customize the cover letter
CL="$ODIR/0000-cover-letter.patch"