{"thread":{"id":"37117","subject":"git-fast-import bug?","startedAt":"2014-07-11T21:58:32Z","lastAt":"2014-07-11T21:58:32Z","messageCount":1,"participants":["Duane Murphy"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"245835","messageId":"424DC50C-DF9D-423E-93DC-E9E224B871D0@mac.com","threadId":"37117","inReplyTo":null,"subject":"git-fast-import bug?","fromName":"Duane Murphy","fromEmail":"duanemurphy@mac.com","sentAt":"2014-07-11T21:58:32Z","receivedAt":"2014-07-11T21:58:32Z","isPatch":false,"sender":{"key":"duanemurphy@mac.com","avatar":"https://gravatar.com/avatar/5b2fbb04ffc1895105750bf2989760c065e01596b8bd65059de774d4c1d0a963?d=mp&s=160"},"body":"git-fast-import is not writing a commit even after a checkpoint/progress command.\n\nSee my previous message \"git p4 diff-tree ambiguous argument error\". \n\nThe error in git-p4 is caused by git not writing the commit even after git-fast-import has been given a checkpoint and progress command.\n\nOn initial use of git p4 to sync a p4 repository, the commits are written properly. But on a subsequent run the commit is not flushed to the file system during the run. Specifically, I can stop the git-p4 command directly after the progress checkpoint command (see the checkpoint() function in git-p4). The file is not found. If I abort/exit the application at that point, the file appears. \n\nThere is a pattern of behavior here that is consistent but I am unable to understand. A bare repository works fine. An already populated repository does not work until the app is quit. What would cause git-fast-import to _NOT_ flush the file?\n\nThis certainly seems like a bug. But I don't know enough of the git internals to reproduce.\n\nSuggestions on how to test or isolate this problem?\n\nThanks\n\nReproduced consistently on two systems:\n\n$ git --version \ngit version 1.8.5.2 (Apple Git-48) \n$ python --version \nPython 2.7.5 \n$ uname -a \nDarwin Kernel Version 13.3.0: Tue Jun  3 21:27:35 PDT 2014; root:xnu-2422.110.17~1/RELEASE_X86_64 x86_64 \n\nand \n\n$ git --version \ngit version 1.7.12.4 \n$ python --version \nPython 2.6.6 \nOS: GNU/Linux 2.6.32-431.el6.x86_64 \n"}]}