Thread (1 message) 1 message, 1 author, 2016-06-15

Re: git checkout creates strange '(null)'-branch

From: Junio C Hamano <hidden>
Date: 2016-06-15 22:53:46

Johannes Sixt [off-list ref] writes:
Am 5/8/2012 13:24, schrieb Erik Faye-Lund:
quoted
+		git show-ref | !grep "(null)"
...
quoted
Now, doing this doesn't make my test above pass,
It is unlikely to pass if you used this test script literally, because

   $ !grep
   !grep: command not found

"!" is not an operator in a shell script. Insert a space.
Good eyes.  Also wouldn't it be a bit pointless to grep for (null) in the
first place?  It comes only because a particular implementation of
vsnprintf() happens to emit it when asked to turn a NULL pointer into a
string, and on other platforms it is allowed to segfault.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help