Re: git on Cygwin: Not a valid object name HEAD

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

 




On Aug 15, 2007, at 2:48 PM, Mark Levedahl wrote:

On 8/15/07, Mark Levedahl <mlevedahl@xxxxxxxxx> wrote:
On 8/15/07, Shawn O. Pearce <spearce@xxxxxxxxxxx> wrote:
David Kastrup <dak@xxxxxxx> wrote:
Load a Hive, Query, Save, Restore, and Unload a Hive. To install
    the Support Tools:

    1.


    Insert the Windows 2000 CD-ROM into your CD-ROM drive.

Indeed, that step right there will stop many users cold in their
tracks.

maybe something like ...

case "$(uname -s) in
   MSYS*)
       <your way>;;
   *)
       <the unix way>;;
esac

If reg.exe is not there kdiff3 will not be found. The code will
already be _ignored_. It's just not working.

It may make sense to use 'uname -s' to explicitly control that the
code is expected to work. This would allow to report errors if a
command is missing. However, cluttering all shell scripts with
uname's will likely become quite confusing.

If performance is a concern, we may execute uname -s only once
in git-sh-setup and assign its return to something like GIT_UNAME.
This may save us a few forks, which are to my knowledge quite
expensive on Windows.

	Steffen


-
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]

  Powered by Linux