git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* shell script calling git fails when called from scheduler
@ 2011-03-25 22:04 Markus Heller
  2011-03-25 22:19 ` Matt Harrison
  0 siblings, 1 reply; 3+ messages in thread
From: Markus Heller @ 2011-03-25 22:04 UTC (permalink / raw)
  To: git

Hi all,

I have the following batch shell script (org-git-synch.bat):

@ECHO OFF

REM get date and time
for /f "delims=" %%a in ('date/t') do @set mydate=%%a
for /f "delims=" %%a in ('time/t') do @set mytime=%%a
set fvar=%mydate%%mytime%

REM add all new files
call git add .
call git commit -a -m "Automated commit by org-git-sync.bat on %fvar%"

The script resides in h:/org/; and I have a working git repository in
this directory (in h:/org/.git).

I can run the script from the command line no problem, but when I try to
run it from the Windoze scheduler, all I get is a cmd window saying:

fatal: not a git repository (or any of the parent directories): .git
fatal: not a git repository (or any of the parent directories): .git

I did re-initialize the repository, but that didn't matter, since git
status and everything else works fine from the command line.  I'm on Win
7 Pro 64 bit SP 1.

Any ideas?

Thanks and Cheers
Markus

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2011-03-25 23:03 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-03-25 22:04 shell script calling git fails when called from scheduler Markus Heller
2011-03-25 22:19 ` Matt Harrison
2011-03-25 23:03   ` Markus Heller

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).