git/list[1] front-page[2] threads[3] people[4] search[5] about
 

[OT?] Executing Git from bash script invoked by cron

From
JSJohannes Schneider <mailings@cedarsoft.com>
Date
Jun 28, 2010, 21:00 UTC
Message-ID
<4C290D88.80306@cedarsoft.com>
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Hi,

I try to mirror my local git repository. Therefore I created a bash script. This script, executed form the command line, works fine.

But the same script executed by cron, does not work. Git push does simply nothing. No output, no push, nothing. But git log and git --version works...

I tried to google the problem, but couldn't not find anything useful. Any hints are welcome.

Ubuntu 64Bit git version 1.7.0.4 cron 3.0pl1-106ubuntu5

Thanks,
Johannes
- -- 
Johannes Schneider - blog.cedarsoft.com
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (GNU/Linux)

iQEcBAEBAgAGBQJMKQ2GAAoJEAytD9R7Qv6dRmIH/3YqxEMRDLeHcLfsH0JYBdOT NG2e7mMjiYg2akQOsXSN4iN1iMrRfj/gp9udd7QM4p8W06xlv0wftOC87IKZKDtp DujAYB6hHMtHYkVrWV9KuP+ptuaZDvhgti+8DvfAKGuXbRa0xs4CcRCclLLNrj6x tqJJZatdVZgvEDBePWVcTJfglJf+2lozxBXvTkat8mjEGCYDuUfvG37yimSETZHT wJITWGi3BdMG5m6xHOHDYp4IHuGw2sfWYAN3EE7dS6m2P7/l/VRM18PsAWFM3j1Q Axv57mkJu1ea9tj54W7I7kJCHDC5TZDf9FXSPPOMY1t1qzgtGfB7tfQMDamHIYY= =LRSS -----END PGP SIGNATURE-----

Next: Sverre Rabbelier
Message 1 of 7 in “[OT?] Executing Git from bash script invoked by cron”
  1. Johannes SchneiderJun 28, 2010
  2. Sverre RabbelierJun 28, 2010
  3. Marc WeberJun 28, 2010
  4. Sverre RabbelierJun 28, 2010
  5. Johannes SchneiderJul 3, 2010
  6. Ramkumar RamachandraJun 28, 2010
  7. Matthieu MoyJun 29, 2010

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.