diff options
author | Ian Jackson <ijackson@chiark.greenend.org.uk> | 2016-09-25 21:22:23 +0100 |
---|---|---|
committer | Ian Jackson <ijackson@chiark.greenend.org.uk> | 2016-09-26 01:36:35 +0100 |
commit | 5053f93da9652c68839b4d982252b5561cf66d6e (patch) | |
tree | 1dd76c454f517c999e0d7e594a7f952119dfa76c /tests/tests | |
parent | 16dd3ffe595a585adc0fffb7f4ab97b29807911b (diff) |
Test suite: Test --overwrite=VERSION
Diffstat (limited to 'tests/tests')
-rwxr-xr-x | tests/tests/overwrite-version | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/tests/tests/overwrite-version b/tests/tests/overwrite-version new file mode 100755 index 0000000..ac76f40 --- /dev/null +++ b/tests/tests/overwrite-version @@ -0,0 +1,18 @@ +#!/bin/bash +set -e +. tests/lib + +t-setup-import examplegit + +cd example + +suite=stable + +t-commit 'No changes, just send to stable' '' stable + +t-dgit -wgf build + +t-expect-fail 'HEAD is not a descendant' \ +t-dgit push stable + +t-dgit push --overwrite=1.2 stable |