Re: [git-users] Updating a version file on post-commit

2011-04-28 Thread David Aguilar
I would recommend studying git.git's Makefile and seeing how they generate their version file. It doesn't use a hook; it's part of the build. -- David On Apr 28, 2011, at 1:36 PM, Greg Moser wrote: > So in my .git/hooks folder I have a file named post-c

Re: [git-users] Updating a version file on post-commit

2011-04-28 Thread Greg Moser
So the file needs to be part of the repository because the application is installed by downloading the zipball directly from github... There is no "build process" per say. Every push to the master branch is an offical release, and every push to the develop branch is a bleeding edge release. I

Re: [git-users] Updating a version file on post-commit

2011-04-28 Thread Konstantin Khomoutov
On Thu, Apr 28, 2011 at 01:36:27PM -0700, Greg Moser wrote: > So in my .git/hooks folder I have a file named post-commit that looks like > this: > > > #!/bin/sh > > rm version.txt -i > git describe --tags >> version.txt > > > Basically the idea being that after every commit, I write the "git

[git-users] Updating a version file on post-commit

2011-04-28 Thread Greg Moser
So in my .git/hooks folder I have a file named post-commit that looks like this: #!/bin/sh rm version.txt -i git describe --tags >> version.txt Basically the idea being that after every commit, I write the "git describe" to a file in my repository called version.txt. This script works fine