Code indexing in gitaly is broken and leads to code not being visible to the user. We work on the issue with highest priority.

Skip to content
Snippets Groups Projects
Commit 0353a53b authored by ulrich_y's avatar ulrich_y
Browse files

submit.sh self-documents all changes

parent 07b3114c
No related branches found
No related tags found
No related merge requests found
......@@ -88,6 +88,23 @@ function run (){
sleep 1
}
if ! git ls-files 2>&1 > /dev/null ; then
echo "Warning! not a git repository, no self-tracking"
else
echo "Git rev is `git rev-parse --short HEAD` (branch `git rev-parse --abbrev-ref HEAD`)"
if [ -z "$(git status --porcelain)" ]; then
echo "Working directory clean"
else
patchpath=`dirname $this`/diff-`git rev-parse --short HEAD`-${SLURM_JOB_ID}.patch.gz
git diff | gzip > $patchpath
patchsize=`git diff | wc -c`
csize=`wc -c $patchpath`
echo "There are uncommitted changes. I have created"
echo " $patchpath ($patchsize byte > $csize)"
echo "with the differences to `git rev-parse --short HEAD`."
fi
fi
time {
#$1: config file
#$2: seed
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment