diff options
author | Lars Wirzenius <liw@liw.fi> | 2014-04-26 15:46:44 +0100 |
---|---|---|
committer | Lars Wirzenius <liw@liw.fi> | 2014-04-26 15:46:44 +0100 |
commit | 38fd8f2d19039da38dead9a3553aeea5e67ad7ad (patch) | |
tree | 10b7dfbd4ca7546ed97f2e783a7c6ea80b29b567 /yarns | |
parent | 0158dfc06428ea21158a0e9ddb10ac57b66072c6 (diff) | |
download | distix-38fd8f2d19039da38dead9a3553aeea5e67ad7ad.tar.gz |
Verify that a newly created repo is committed
Diffstat (limited to 'yarns')
-rw-r--r-- | yarns/030-init.yarn | 1 | ||||
-rw-r--r-- | yarns/900-implements.yarn | 10 |
2 files changed, 11 insertions, 0 deletions
diff --git a/yarns/030-init.yarn b/yarns/030-init.yarn index bf4cc88..ce96ab4 100644 --- a/yarns/030-init.yarn +++ b/yarns/030-init.yarn @@ -10,3 +10,4 @@ creation of a repository. AND REPO exists AND REPO/.git exists AND REPO/repo.yaml exists + AND everything in REPO is committed to git diff --git a/yarns/900-implements.yarn b/yarns/900-implements.yarn index 876ae32..a715344 100644 --- a/yarns/900-implements.yarn +++ b/yarns/900-implements.yarn @@ -103,3 +103,13 @@ Clone a repository. IMPLEMENTS WHEN user clones (\S+) to (\S+) cd "$DATADIR" git clone "$MATCH_1" "$MATCH_2" + +Check that everything is in git. + + IMPLEMENTS THEN everything in (\S+) is committed to git + cd "$DATADIR/$MATCH_1" + if git status --short | grep . + then + echo "Not everything is in git" 1>&2 + exit 1 + fi |