Skip to content
Find file
Fetching contributors…
Cannot retrieve contributors at this time
18 lines (11 sloc) 215 Bytes
#!/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
Something went wrong with that request. Please try again.