Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

18 lines (11 sloc) 0.215 kb
#!/bin/bash
if [ $# -ne 1 ]
then
echo "Usage: update-last.sh src-directory"
exit 1
fi
srcdir=$1
cd $srcdir
commit=`git log -1 | awk '/^commit/ {print $2;}'`
echo $commit > ../last-seen-revision
exit 0
Jump to Line
Something went wrong with that request. Please try again.