[fast-import] LF after reset not optional

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hello.

Maybe I'm doing something wrong, but I can't get the "reset" command to
work as advertised in git-fast-import(1), without an extra LF at the
end.

This input:

-8<-
commit refs/heads/master
mark :1
committer Joe R. Developer <joe@xxxxxxxxxx> 1204726629 +0100
data <<EOF
First commit.
EOF
M 644 inline foo.txt
data <<EOF
Hello, world!
EOF
reset refs/tags/tag1
from :1
reset refs/tags/tag2
from :1
-8<-

fails with:

  fatal: Unsupported command: from :1

Adding an extra LF before the second reset fixes the issue. I tested
this issue seems to present in the "next" branch in addition to 1.5.4.3.

Cheers,

-- 
Adeodato Simó                                     dato at net.com.org.es
Debian Developer                                  adeodato at debian.org
 
- I couldn't find anything in there for days. I kept reaching in for
  strawberries and coming up with liver -- that's not pleasant.
- I promise not to touch the fridge again.
                -- Sookie and Lorelai

--
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Kernel Development]     [Gcc Help]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [V4L]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Fedora Users]

  Powered by Linux