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

Re: [PATCH] contrib/workdir: add a simple script to create a working directory

From: Junio C Hamano <hidden>
Date: 2016-06-15 22:43:01

Possibly related (same subject, not in this thread)

Eric Lesh [off-list ref] writes:
On Tue, 2007-03-27 at 00:15 +0100, Julian Phillips wrote:
quoted
+# want to make sure that what is pointed to has a .git directory ...
+test -d ${orig_git}/.git || die "${original_git} is not a git repository!";
+
Shouldn't this be made to work with bare repositories as well?
I think you could enhance Julian's script for that.

But you need to be careful that bare and non-bare repositories
are often of quite different nature.  The script might need to
decide which parts to borrow from the original and which parts
to have in the borrowing repository depending on that.

For example, a bare repository by default does not have reflog,
but a working tree that borrows from the bare repository might
want to enable reflog.  In such a case, creating a symlink to
orig.git/logs/refs would not be sufficient, and you would either
want to enable reflog for the original bare repository and/or
have .git/logs/refs hierarchy as a non-symlinked, real directory
of your own.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help