Skip to content

Commit 6a80632

Browse files
committed
Fix generation commit_id.h on Windows
1 parent 7e7efb3 commit 6a80632

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
@@ -504,6 +504,7 @@ EOF
504504
if ( -d ".git" ) {
505505
open P,"git log -1 --format='%h' |";
506506
my $commit_id = <P>;
507+
chomp($commit_id);
507508
if (close(P)) {
508509
open(O, ">src/include/commit_id.h");
509510
print O "#define COMMIT_ID \"$commit_id\"\n";

0 commit comments

Comments
 (0)