Thread (5 messages) flat view 5 messages, 3 authors, 2016-06-15

Re: [PATCH] git-filter-branch.sh: Allow running in bare repositories

From: Petr Baudis <hidden>
Date: 2016-06-15 22:45:00

Possibly related (same subject, not in this thread)

  Hi,

On Wed, Jul 23, 2008 at 10:59:03PM +0100, Johannes Schindelin wrote:
On Wed, 23 Jul 2008, Petr Baudis wrote:
quoted
Commit 46eb449c restricted git-filter-branch to non-bare repositories
unnecessarily; git-filter-branch can work on bare repositories just
fine.

Cc: Johannes Schindelin <redacted>
Funny, I did not get Cc:ed.
  sorry, I have to copy the Cc around manually with StGIT. :/
quoted
-git diff-files --quiet &&
-	git diff-index --cached --quiet HEAD -- ||
-	die "Cannot rewrite branch(es) with a dirty working directory."
+if [ "$(is_bare_repository)" = false ]; then
+	git diff-files --quiet &&
+		git diff-index --cached --quiet HEAD --) ||
                                                       ^

I doubt this has ever passed the test suite, let alone run.
  It did... provided that I didn't make after modifying the script.
Besides, this extra-funny extra indent is quite brutal on my eyes.
  I kept the original indentation.

				Petr "Pasky" Baudis
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help