Skip to content

Commit 02cf3b3

Browse files
committed
Fix generation commit_id.h on Windows
1 parent 82545f6 commit 02cf3b3

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/tools/msvc/Solution.pm

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -508,6 +508,7 @@ EOF
508508
if ( -d ".git" ) {
509509
open P,"git log -1 --format='%h' |";
510510
my $commit_id = <P>;
511+
chomp($commit_id);
511512
if (close(P)) {
512513
open(O, ">src/include/commit_id.h");
513514
print O "#define COMMIT_ID \"$commit_id\"\n";

0 commit comments

Comments
 (0)