Thread (1 message) 1 message, 1 author, 2018-12-05

Re: How de-duplicate similar repositories with alternates

From: Junio C Hamano <hidden>
Date: 2018-12-05 03:30:27

Ævar Arnfjörð Bjarmason [off-list ref] writes:
I think a warning (or even error) like this would be more useful:

    test ! -d $objdir && error... # current behavior
    test -d $objdir/objects && error "Did you mean $objdir/objects, silly?" # new error
If it is an error common enough, perhaps we could even DWIM it, I
guess, that is...

	if test ! -d $objdir
	then
		error
	elif test -d $objdir/objects/pack
	then
		possibly warn
		objdir=$objdir/objects
	fi
I.e. I suspect I'm not the only one who's not read the documentation
carefully enough and thought it was a path to the root of the repo and
wondered why it silently didn't work.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help