# file : tests/git-common.testscript # license : MIT; see accompanying LICENSE file # Set commonly-used variables and create an empty git repository that will be # copied by subsequent tests and scope setup commands. # g = [cmdline] git >! 2>&1 gp = [cmdline] $g -C prj ga = [cmdline] $gp add gr = [cmdline] $gp rm +$g init prj &prj/*** +$gp config user.name 'Test Script' +$gp config user.email 'testscript@example.com' clone_prj = [cmdline] cp --no-cleanup -r ../prj ./ &prj/***