Fatal: unrecognized argument: --format=format:%h

Dear all,
I just tried the most recent jruby snapshot from
http://ci.jruby.org/snapshots/
This is what I see here on my Mac OS 10.6.4 machine:
$ jruby -v
jruby 1.6.0.dev (ruby 1.8.7 patchlevel 249) (2010-09-01 fatal:
unrecognized argument: --format=format:%h) (Java HotSpot™ 64-Bit
Server VM 1.6.0_20) [darwin-x86_64-java]

Do you also get this fatal … string inside the version message?

Cheers,
– Jan

On Sep 1, 2010, at 8:32 AM, Jan H. wrote:

– Jan
The error should not affect the fitness of the snapshot, so don’t worry
about that.

To be more precise… That’s where the git revision is supposed to go if
you build the binary from the source, like so:

$ git log -1 --format=format:%h
b9f8624

My guess is that the git version in the snapshot environment is either
too old or too new, and the argument is not recognized.

Hiro

On Wed, Sep 1, 2010 at 7:52 AM, Hirotsugu A. [email protected]
wrote:

[darwin-x86_64-java]
My guess is that the git version in the snapshot environment is either too
old or too new, and the argument is not recognized.

Yes, that’s exactly it – the version of git on our CI server is too
old. It actually turned out to be easier to change the command used to
generate the hash to git log -1 --pretty=format:%h which is
compatible with git 1.6 on the CI server as well as newer versions.
The next snapshot should properly capture the revision from which it
was built.

/Nick


To unsubscribe from this list, please visit:

http://xircles.codehaus.org/manage_email

On 01.09.2010, at 19:08, Nick S. wrote:

The next snapshot should properly capture the revision from which it
was built.

Yep, version string is looking fine again now.

Thanks,
– Jan


To unsubscribe from this list, please visit:

http://xircles.codehaus.org/manage_email

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs