OSDN Git Service

version.sh: handle shallow clones and snapshots.
authorNicolas George <nicolas.george@normalesup.org>
Thu, 21 Jul 2011 13:16:12 +0000 (15:16 +0200)
committerNicolas George <nicolas.george@normalesup.org>
Fri, 22 Jul 2011 08:43:59 +0000 (10:43 +0200)
commit657eac048eb267d781de83849fe7616d29320832
treea4597ff6360d8eb65a1b95329ea80b1af70c16d9
parentba99474b1d3282afd5111d7e4ce542030f3f0ccc
version.sh: handle shallow clones and snapshots.

Shallow clones (--depth X) lack the N tag used to compute
the revision number: use 'git-YYYY-MM-DD-hhhhhhh' as revision,
where hhhhhhh is the short git hash.

Snapshots from gitweb do not have git information at all,
but they have the short git hash in the directory name:
append it to the release number.
version.sh