Commit c3754a5ba7f662b92fd96c944a28356b487c73b5

Stefan Sperling 2019-05-10T17:30:26

make GOT_AUTHOR available to all cmdline tests

diff --git a/regress/cmdline/commit.sh b/regress/cmdline/commit.sh
index d9093b3..f1bd7e7 100755
--- a/regress/cmdline/commit.sh
+++ b/regress/cmdline/commit.sh
@@ -16,9 +16,6 @@
 
 . ./common.sh
 
-name=$(getent passwd $USER | cut -d: -f5)
-export GOT_AUTHOR="$name <$(whoami)@$(hostname)>"
-
 function test_commit_basic {
 	local testroot=`test_init commit_basic`
 
diff --git a/regress/cmdline/common.sh b/regress/cmdline/common.sh
index a7e8448..0605ccf 100644
--- a/regress/cmdline/common.sh
+++ b/regress/cmdline/common.sh
@@ -14,6 +14,9 @@
 # ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
 # OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
 
+name=$(getent passwd $USER | cut -d: -f5)
+export GOT_AUTHOR="$name <$(whoami)@$(hostname)>"
+
 function git_init
 {
 	git init -q "$@"