repo.or.cz
/
guilt.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Guilt v0.35
[guilt.git]
/
regression
/
t-010.sh
blob
1fc88fa7ff684f8a41ab5511e4412b9d502bee7d
1
#!/bin/bash
2
#
3
# Test the init code
4
#
5
6
source
$REG_DIR
/
scaffold
7
8
function
opts
9
{
10
cat
<< DONE
11
12
-a
13
-n
14
DONE
15
}
16
17
cmd setup_git_repo
18
19
opts |
while
read
opt
;
do
20
cmd reset_git_repo
21
22
cmd guilt init
$opt
23
cmd list_files
24
shouldfail guilt init
$opt
25
cmd list_files
26
done
27
28
cmd git branch other
29
cmd git checkout other
30
31
cmd guilt init
32
cmd list_files
33
shouldfail guilt init
34
cmd list_files