Skip to content

Commit e2737b8

Browse files
authored
Revert a9f2597 (cont'd)
#934 (comment)
1 parent ece4bb5 commit e2737b8

File tree

1 file changed

+0
-19
lines changed

1 file changed

+0
-19
lines changed

src/appimagetool.c

Lines changed: 0 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -564,7 +564,6 @@ main (int argc, char *argv[])
564564
if(guessupdateinformation){
565565
if(g_find_program_in_path ("git")) {
566566
if (version_env == NULL) {
567-
<<<<<<< HEAD
568567
GError* error = NULL;
569568
gchar* out = NULL;
570569

@@ -585,24 +584,6 @@ main (int argc, char *argv[])
585584
g_printerr(" %s\n", version_env);
586585
g_printerr(" Please set the $VERSION environment variable if this is not intended\n");
587586
}
588-
=======
589-
GError *error = NULL;
590-
gchar *out = NULL;
591-
GString *command_line = g_string_new("git");
592-
g_string_append_printf(command_line, " rev-parse --short HEAD");
593-
int ret = g_spawn_command_line_sync(command_line->str, &out, NULL, NULL, &error);
594-
g_assert_no_error(error);
595-
if (ret) {
596-
version_env = g_strstrip(out);
597-
} else {
598-
g_print("Failed to run 'git rev-parse --short HEAD'");
599-
}
600-
g_string_free(command_line, true);
601-
if (version_env != NULL) {
602-
g_print("NOTE: Using the output of 'git rev-parse --short HEAD' as the version:\n");
603-
g_print(" %s\n", version_env);
604-
g_print(" Please set the $VERSION environment variable if this is not intended\n");
605-
>>>>>>> parent of a9f2597... Increase robustness of git commit version guessing
606587
}
607588
}
608589
}

0 commit comments

Comments
 (0)