aboutsummaryrefslogtreecommitdiff
path: root/tests/git-common.testscript
blob: 7f4f5856a6fe8a97a89d359d7a27a924f0582c20 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
# 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/***