The GIT_* environment variables set in switch_user() must be exported to be
available to the programs run afterwards.
Signed-off-by: Gerrit Pape <redacted>
---
Documentation/tutorial-script/script.sh | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
f4d96a4ceda9b7ac7e2e29f4b017edf60360904c
diff --git a/Documentation/tutorial-script/script.sh b/Documentation/tutorial-script/script.sh
index b99e3c9..b0e49c8 100755
--- a/Documentation/tutorial-script/script.sh
+++ b/Documentation/tutorial-script/script.sh
@@ -52,10 +52,10 @@ switch_user () {
*) echo "I don't know you, $1"; exit 1;;
esac
HOME=$(pwd)
- GIT_AUTHOR_NAME="$1"
- GIT_AUTHOR_EMAIL="$1@example.com"
- GIT_COMMITTER_NAME="$1"
- GIT_COMMITTER_EMAIL="$1@example.com"
+ export GIT_AUTHOR_NAME="$1"
+ export GIT_AUTHOR_EMAIL="$1@example.com"
+ export GIT_COMMITTER_NAME="$1"
+ export GIT_COMMITTER_EMAIL="$1@example.com"
}
--
1.3.3