Skip to content

Commit

Permalink
make prepare-commit.sh work with git-new-workdir
Browse files Browse the repository at this point in the history
  • Loading branch information
jef-n committed May 18, 2017
1 parent 40972f0 commit 0923f56
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion scripts/prepare-commit.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
4 changes: 2 additions & 2 deletions src/core/qgscoordinatereferencesystem.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit 0923f56

Please sign in to comment.