git {pull,push} fails without stdin

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

 



This was seen in git 1.6.0.2...

I want to run "git push" in an automated system and, as there's no
sensible stdin to use, I close fd 0 before exec'ing.
However, it does not work:

  sh$ git push <&-
  fatal: read error (Bad file descriptor)

compared to:

  sh$ git push
  Everything up-to-date

The same thing happens with "git pull", but not the other git commands
I tried (in a far-from-exhaustive search).

It's trivial to work around (e.g., use /dev/null as stdin), but it
would be more convenient if it just worked :-)

- Gustav
--
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