Skip to content

Commit 0923f56

Browse files
committedMay 18, 2017
make prepare-commit.sh work with git-new-workdir
1 parent 40972f0 commit 0923f56

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed
 

‎scripts/prepare-commit.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ if [ -z "$MODIFIED" ]; then
5353
exit 0
5454
fi
5555

56-
${TOPLEVEL}/scripts/spell_check/check_spelling.sh $MODIFIED
56+
[ -x ${TOPLEVEL}/scripts/spell_check/check_spelling.sh ] && ${TOPLEVEL}/scripts/spell_check/check_spelling.sh $MODIFIED
5757

5858
# save original changes
5959
REV=$(git log -n1 --pretty=%H)

‎src/core/qgscoordinatereferencesystem.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2245,10 +2245,10 @@ bool QgsCoordinateReferenceSystem::syncDatumTransform( const QString &dbPath )
22452245
QStringList v;
22462246
v.reserve( sizeof( map ) / sizeof( *map ) );
22472247

2248-
for(;;)
2248+
for ( ;; )
22492249
{
22502250
char **values = CSVReadParseLine( fp );
2251-
if( !values )
2251+
if ( !values )
22522252
break;
22532253

22542254
v.clear();

0 commit comments

Comments
 (0)
Please sign in to comment.