The GIT_* environment variables set in switch_user() must be exported to be available to the programs run afterwards. Signed-off-by: Gerrit Pape <pape@smarden.org> --- 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 - To unsubscribe from this list: send the line "unsubscribe git" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.htmlReceived on Thu Jun 29 18:58:41 2006
This archive was generated by hypermail 2.1.8 : 2006-06-29 18:59:05 EST