* Tracked file suddenly disappeared just prior to commit.
@ 2009-11-12 20:10 Kaz Kylheku
0 siblings, 0 replies; only message in thread
From: Kaz Kylheku @ 2009-11-12 20:10 UTC (permalink / raw)
To: git
I am running git 1.6.5rc2 on a somewhat dated system (RH EL 4, i686).
The working copy is on an NFS mount from ``Big File Server used by Lots of
People''.
I ran ``git diff > diffs'' to capture some work. I was then editing the
ChangeLog file, making comments based on the diffs. I had modified two files:
a C source file and its corresponding header. I spent maybe ten minutes doing
up the ChangeLog entry for these changes.
Then I quit the editor and ran ``git commit -a''.
In the commit comment, I saw git's shocking report that the C file had been
deleted! Apparently, I am about to commit a deletion of the file I hacked on!
So I emptied the comment to abort the commit. I listed the
directory and surely enough, the file was gone.
For a split second I thought that I lost the changes, but then I realized I had
the diff in the "diffs" file, so I recovered with a ``git checkout'', followed
by a patch. Phew!
How could that have happened? I haven't seen issues like this with the
NFS server at all. The file hadn't been recently created, and it hadn't been
touched for 12 hours since I made the changes.
Could another user have deleted the file as a prank? In this insecure
environment, you can impersonate another user to get around
directory permissions. It can't be logically ruled out that someone
was messing with my working copy.
I checked my bash history as well as the command history in Vim, but could find
no traces of any accidental delete command, or any command which might lead to
deletion. It all points to either git, the NFS server, or a prankster.
Strange!
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2009-11-12 20:16 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-11-12 20:10 Tracked file suddenly disappeared just prior to commit Kaz Kylheku
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).