git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* git {pull,push} fails without stdin
@ 2009-01-28  9:27 Gustav Hållberg
  0 siblings, 0 replies; only message in thread
From: Gustav Hållberg @ 2009-01-28  9:27 UTC (permalink / raw)
  To: git

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

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2009-01-28  9:28 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-01-28  9:27 git {pull,push} fails without stdin Gustav Hållberg

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).