From: Wolfgang Rohdewald <wolfgang@rohdewald.de>
To: git@vger.kernel.org
Subject: [BUG] filter-branch --parent-filter in bare repository
Date: Fri, 17 Aug 2012 18:27:21 +0200 [thread overview]
Message-ID: <2079016.4kHNMXxD8A@i5> (raw)
Using git version 1.7.12.rc2.18.g61b472e
(1.7.9 has the same problem)
If I run (directly in the bare repository)
git filter-branch -d ../localrewrite --parent-filter cat
I get this error message on the last line, nothing unusual before:
error: Untracked working tree file 'AUTHORS' would be overwritten by merge.
but if I run (directly in the bare repository)
git filter-branch -d .localrewrite --parent-filter cat
everything works fine. Depending on the path of the temporary directory,
the error may also point to some other file. AUTHORS is in the root directory,
but it is never untracked.
If I do a clone and run the same command in the clone, it also works with any
temp directory.
And this only happens with one specific repository - a KDE game, converted with
svn2git. No other game has this problem. git fsck only finds dangling tags.
The resulting repositories are identical, so I can ignore the error message for now.
But still - why can't I run this in the bare repository? git help filter-branch does not
mention something like that.
You can get the repository here:
http://www.rohdewald.de/oss/tst.tbz
Maybe related:
I run this directly in the bare repository. If the command succeeds, I find
a checkout directly there (everything was clean before), so I have all this
intermixed - IMHO a bug.
branches description HEAD hooks info objects refs
PLUS all directories and files right in there:
AUTHORS History.h ksokobanui.rc MapDelta.h PathFinder.cpp
Bookmark.cpp hooks LevelCollection.cpp Map.h PathFinder.h
Bookmark.h HtmlPrinter.cpp LevelCollection.h Messages.sh PlayField.cpp
branches HtmlPrinter.h LevelMap.cpp ModalLabel.cpp PlayField.h
CMakeLists.txt ImageData.cpp LevelMap.h ModalLabel.h Queue.h
config-ksokoban.h.cmake ImageData.h levels Move.cpp README
data images main.cpp Move.h refs
description index MainWindow.cpp MoveSequence.cpp StaticImage.cpp
doc info MainWindow.h MoveSequence.h StaticImage.h
HEAD InternalCollections.cpp Map.cpp NEWS TODO
History.cpp InternalCollections.h MapDelta.cpp objects
--
Wolfgang
reply other threads:[~2012-08-17 16:27 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=2079016.4kHNMXxD8A@i5 \
--to=wolfgang@rohdewald.de \
--cc=git@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).