This adds test coverage to an otherwise uncovered path.
Signed-off-by: Peter Grayson <[email protected]>
---
t/t1800-import.sh | 9 +++++++++
1 file changed, 9 insertions(+)
diff --git a/t/t1800-import.sh b/t/t1800-import.sh
index 7789a912..8539d97d 100755
--- a/t/t1800-import.sh
+++ b/t/t1800-import.sh
@@ -22,6 +22,15 @@ test_expect_success \
'
test_expect_success \
+ 'Apply a patch from a URL' \
+ '
+ stg import -u file://$STG_ROOT/t/t1800-import/git-diff &&
+ [ $(git cat-file -p $(stg id) \
+ | grep -c "tree e96b1fba2160890ff600b675d7140d46b022b155") = 1 ] &&
+ stg delete ..
+ '
+
+test_expect_success \
'Apply a patch created with "git diff" using -p1' \
'
stg import -p1 $STG_ROOT/t/t1800-import/git-diff &&
--
2.12.0
_______________________________________________
stgit-users mailing list
[email protected]
https://mail.gna.org/listinfo/stgit-users