{"thread":{"id":"17411","subject":"git {pull,push} fails without stdin","startedAt":"2009-01-28T09:27:14Z","lastAt":"2009-01-28T09:27:14Z","messageCount":1,"participants":["Gustav Hållberg"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"102287","messageId":"a1e915350901280127g55d6a978i241c2b9793cc8690@mail.gmail.com","threadId":"17411","inReplyTo":null,"subject":"git {pull,push} fails without stdin","fromName":"Gustav Hållberg","fromEmail":"gustav@gmail.com","sentAt":"2009-01-28T09:27:14Z","receivedAt":"2009-01-28T09:27:14Z","isPatch":false,"sender":{"key":"gustav@gmail.com","avatar":null},"body":"This was seen in git 1.6.0.2...\n\nI want to run \"git push\" in an automated system and, as there's no\nsensible stdin to use, I close fd 0 before exec'ing.\nHowever, it does not work:\n\n  sh$ git push <&-\n  fatal: read error (Bad file descriptor)\n\ncompared to:\n\n  sh$ git push\n  Everything up-to-date\n\nThe same thing happens with \"git pull\", but not the other git commands\nI tried (in a far-from-exhaustive search).\n\nIt's trivial to work around (e.g., use /dev/null as stdin), but it\nwould be more convenient if it just worked :-)\n\n- Gustav\n"}]}