Changeset ef581f in git


Ignore:
Timestamp:
Oct 13, 2014, 3:48:06 PM (10 years ago)
Author:
Oleksandr Motsak <motsak@…>
Branches:
(u'spielwiese', 'fe61d9c35bf7c61f2b6cbf1b56e25e2f08d536cc')
Children:
46dca4567e420a73fcdb1f1e8fcda1358f6a59c8
Parents:
24ba3142e75f50c542390a2f991a3c181279407b
git-author:
Oleksandr Motsak <motsak@mathematik.uni-kl.de>2014-10-13 15:48:06+02:00
git-committer:
Oleksandr Motsak <motsak@mathematik.uni-kl.de>2014-10-13 15:55:21+02:00
Message:
Fixing git-version-gen to be used from outside of git repository
File:
1 edited

Legend:

Unmodified
Added
Removed
  • git-version-gen

    r24ba31 ref581f  
    11#!/bin/bash
    22
    3 GIT_WORK_TREE=`dirname "$0"`
     3export GIT_WORK_TREE=`dirname "$0"`
     4export GIT_DIR="$GIT_WORK_TREE/.git"
     5
    46## :'%h on %ci by %an: "%s"' --abbrev-commit | sed 's/\"/\\\"/g'
    57if [ -d "$GIT_WORK_TREE/.git" ] && v=`git log --pretty=format:'%h' --abbrev-commit -1 2>/dev/null` ;
Note: See TracChangeset for help on using the changeset viewer.