Re: Cleaning up git user-interface warts

3 messages, 3 authors, 2016-08-11 · open the first message on its own page

Re: Cleaning up git user-interface warts

From: Horst H. von Brand <hidden>
Date: 2016-08-11 20:15:23

Junio C Hamano [off-list ref] wrote:
Junio C Hamano [off-list ref] writes:
quoted
Han-Wen Nienhuys [off-list ref] writes:
quoted
[hanwen@haring y]$ git pull ../x
fatal: Needed a single revision
Pulling into a black hole?
Having said all that, I happen to think that this particular
case of pulling into void could deserve to be special cased to
pretend it is a fast forward (after all, nothingness is an
ancestor of anything), if only to make new people's first
experience more pleasant.
If you make pushing into an empty repository work also, you fix the case of
"create an empty repo for somebody, let them fill it up remotely later".

[...]
So please consider that this is classified as a bug.
Thanks!
-- 
Dr. Horst H. von Brand                   User #22616 counter.li.org
Departamento de Informatica                    Fono: +56 32 2654431
Universidad Tecnica Federico Santa Maria             +56 32 2654239

Re: Cleaning up git user-interface warts

From: Shawn Pearce <hidden>
Date: 2016-08-11 19:22:49

"Horst H. von Brand" [off-list ref] wrote:
If you make pushing into an empty repository work also, you fix the case of
"create an empty repo for somebody, let them fill it up remotely later".
This seems to work just fine now.  I do it all of the time.

-- 

Re: Cleaning up git user-interface warts

From: Jakub Narebski <hidden>
Date: 2016-08-11 20:47:11

Horst H. von Brand wrote:
Junio C Hamano [off-list ref] wrote:
quoted
Junio C Hamano [off-list ref] writes:
quoted
Han-Wen Nienhuys [off-list ref] writes:
quoted
[hanwen@haring y]$ git pull ../x
fatal: Needed a single revision
Pulling into a black hole?
Having said all that, I happen to think that this particular
case of pulling into void could deserve to be special cased to
pretend it is a fast forward (after all, nothingness is an
ancestor of anything), if only to make new people's first
experience more pleasant.
If you make pushing into an empty repository work also, you fix the case of
"create an empty repo for somebody, let them fill it up remotely later".
That was only the _pull_ which didn't work in empty repo.
Fetch and push worked (and work) just fine with empty repo.

-- 
Jakub Narebski
Warsaw, Poland
ShadeHawk on #git
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help