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

Re: 'pu' branch for StGIT

From
PRPavel Roskin <proski@gnu.org>
Date
Aug 8, 2007, 22:18 UTC
Message-ID
<1186611514.7383.4.camel@dv>
In-Reply-To
<20070808213917.GA22521@diana.vm.bytemark.co.uk>
Hello, Karl!
On Wed, 2007-08-08 at 23:39 +0200, Karl Hasselström wrote:
> > Hmm, I hadn't noticed. That would be an unintended side-effect of
> > the DAG patches, presumably. I'll look into it tonight.
> 
> I can't reproduce.

OK, it's trickier. There are some bad patch names that don't get imported properly. In particular, patches ending with ".diff" are committed after import.

Try changing this in the testsuite:
diff --git a/t/t1800-import.sh b/t/t1800-import.sh
index 8c8c9a0..6cd3cdb 100755
--- a/t/t1800-import.sh
+++ b/t/t1800-import.sh
@@ -15,7 +15,7 @@ test_expect_success \
 test_expect_success \
     'Apply a patch created with "git diff"' \
     '
-    stg import ../t1800-import/git-diff &&
+    stg import -n git.diff ../t1800-import/git-diff &&
     [ $(git cat-file -p $(stg id) \
         | grep -c "tree e96b1fba2160890ff600b675d7140d46b022b155") = 1 ] &&
     stg delete ..

And now run the test

$ ./t1800-import.sh -i -v
...
Importing patch "git.diff" ... done
No patches applied

The mainline StGIT is OK.
-- 
Regards,
Pavel Roskin
Previous: Karl HasselströmNext: Karl Hasselström
Message 6 of 17 in “'pu' branch for StGIT”
  1. Karl HasselströmAug 7, 2007
  2. Shawn O. PearceAug 7, 2007
  3. Pavel RoskinAug 8, 2007
  4. Karl HasselströmAug 8, 2007
  5. Karl HasselströmAug 8, 2007
  6. Pavel RoskinAug 8, 2007
  7. Karl HasselströmAug 8, 2007
  8. Pavel RoskinAug 9, 2007
  9. Karl HasselströmAug 9, 2007
  10. Pavel RoskinAug 9, 2007
  11. Karl HasselströmAug 9, 2007
  12. Karl HasselströmAug 9, 2007
  13. Pavel RoskinAug 9, 2007
  14. Karl HasselströmAug 9, 2007
  15. Catalin MarinasAug 9, 2007
  16. Karl HasselströmAug 10, 2007
  17. Pavel RoskinAug 12, 2007

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.