Run git from .bat file (Windows)

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hello,

I'm trying to get the script below working on a box with Windoze XP and
git version 1.7.0.2.msysgit.0.  The script is a .bat file and is
supposed to be run from the Windoze scheduler; for testing, I run it
from a command prompt.

Here's the script:

=================8<==================8<=====================
@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
git add .
git commit -a -m "Automated commit by org-git-sync.bat on %fvar%"
================>8===================>8======================

The line "git add ." works, as I can see the additions when I type "git
status" after executing the script.  Committing doesn't work, however:
"git log" shows that no commit was created.

Any idea what's going on?

Thanks
Markus

--
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux Kernel Development]     [Gcc Help]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [V4L]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Fedora Users]