make prepare-commit.sh work with git-new-workdir

This commit is contained in:
Juergen E. Fischer 2017-05-18 21:56:00 +02:00
parent 40972f06fa
commit 0923f56cef
2 changed files with 3 additions and 3 deletions

View File

@ -53,7 +53,7 @@ if [ -z "$MODIFIED" ]; then
exit 0
fi
${TOPLEVEL}/scripts/spell_check/check_spelling.sh $MODIFIED
[ -x ${TOPLEVEL}/scripts/spell_check/check_spelling.sh ] && ${TOPLEVEL}/scripts/spell_check/check_spelling.sh $MODIFIED
# save original changes
REV=$(git log -n1 --pretty=%H)

View File

@ -2245,10 +2245,10 @@ bool QgsCoordinateReferenceSystem::syncDatumTransform( const QString &dbPath )
QStringList v;
v.reserve( sizeof( map ) / sizeof( *map ) );
for(;;)
for ( ;; )
{
char **values = CSVReadParseLine( fp );
if( !values )
if ( !values )
break;
v.clear();