git/list[1] front-page[2] threads[3] people[4] search[5] about
 

[PATCH 1/2] Test git archive --remote

From
Thomas Rast <trast@student.ethz.ch>
Date
Jun 27, 2009, 18:47 UTC
Message-ID
<dac606a8ee9b87339d1cf4b1bff23cea3c1b1c23.1246128025.git.trast@student.ethz.ch>

Add a small test case for git archive --remote (and thus git-upload-archive), which so far went untested.

Signed-off-by: Thomas Rast <trast@student.ethz.ch>
---

This and the next patch are some fairly low-hanging fruit picked from looking at 'make coverage'.

 t/t5000-tar-tree.sh |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)
diff --git a/t/t5000-tar-tree.sh b/t/t5000-tar-tree.sh
index abb41b0..5f84b18 100755
--- a/t/t5000-tar-tree.sh
+++ b/t/t5000-tar-tree.sh
@@ -94,6 +94,10 @@ test_expect_success 'git archive with --output' \
     'git archive --output=b4.tar HEAD &&
     test_cmp b.tar b4.tar'
 
+test_expect_success 'git archive --remote' \
+    'git archive --remote=. HEAD >b5.tar &&
+    test_cmp b.tar b5.tar'
+
 test_expect_success \
     'validate file modification time' \
     'mkdir extract &&
-- 
1.6.3.3.423.ga0175
Next: Thomas Rast
Message 1 of 2 in “Test git archive --remote”
  1. 1/2 Test git archive --remoteThomas Rast, Jun 27, 2009
  2. 2/2 Test grep --and/--or/--notThomas Rast, Jun 27, 2009

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.