Skip to content

Commit

Permalink
fix git reading log
Browse files Browse the repository at this point in the history
  • Loading branch information
sunderme committed Jul 29, 2023
1 parent 72683d0 commit 7ddb605
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/git.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,9 @@ QStringList GIT::log(QString filename)
for(QString& elem:revisions){
elem=elem.simplified();
}
if(!revisions.isEmpty() && revisions.last().isEmpty()){
revisions.takeLast();
}
return revisions;
}
/*!
Expand Down

0 comments on commit 7ddb605

Please sign in to comment.