diff options
Diffstat (limited to 'test/push')
-rw-r--r-- | test/push | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/test/push b/test/push new file mode 100644 index 0000000..ff735e5 --- /dev/null +++ b/test/push @@ -0,0 +1,11 @@ +## vim:ft=zsh +somefile=$RANDOM +touch $somefile +git add $somefile +git commit -m $somefile +pkg push +if [[ $repo == *-bare ]] { + [[ $(git --git-dir=$test_proot/$repo log --pretty=oneline | head -1) == *$somefile ]] +} else { + [[ $(git --git-dir=$test_proot/$repo/.git log --pretty=oneline | head -1) == *$somefile ]] +} |