All of lore.kernel.org
 help / color / mirror / Atom feed
From: Markus Heller <hellerm2@gmail.com>
To: git@vger.kernel.org
Subject: shell script calling git fails when called from scheduler
Date: Fri, 25 Mar 2011 15:04:05 -0700	[thread overview]
Message-ID: <0v62r6q2lm.fsf@gmail.com> (raw)

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

             reply	other threads:[~2011-03-25 22:04 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-03-25 22:04 Markus Heller [this message]
2011-03-25 22:19 ` shell script calling git fails when called from scheduler Matt Harrison
2011-03-25 23:03   ` Markus Heller

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=0v62r6q2lm.fsf@gmail.com \
    --to=hellerm2@gmail.com \
    --cc=git@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.