summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/common/core.c4
-rw-r--r--src/common/core.h5
2 files changed, 5 insertions, 4 deletions
diff --git a/src/common/core.c b/src/common/core.c
index d1a374b29..73416497d 100644
--- a/src/common/core.c
+++ b/src/common/core.c
@@ -259,7 +259,7 @@ const char* get_svn_revision(void)
}
#endif
/* whats our origin */
-#define GIT_ORIGIN "master"
+#define GIT_ORIGIN "refs/remotes/origin/master"
/* Grabs the hash from the last time the user updated his working copy (last pull) */
const char *get_git_hash (void) {
static char HerculesGitHash[41] = "";//Sha(40) + 1
@@ -268,7 +268,7 @@ const char *get_git_hash (void) {
if( HerculesGitHash[0] != '\0' )
return HerculesGitHash;
- if ( (fp = fopen (".git/refs/remotes/origin/"GIT_ORIGIN, "r")) != NULL) {
+ if ( (fp = fopen (".git/"GIT_ORIGIN, "r")) != NULL) {
char line[64];
char *rev = malloc (sizeof (char) * 50);
diff --git a/src/common/core.h b/src/common/core.h
index 8007e6036..dc4db6004 100644
--- a/src/common/core.h
+++ b/src/common/core.h
@@ -1,5 +1,6 @@
-// Copyright (c) Athena Dev Teams - Licensed under GNU GPL
-// For more information, see LICENCE in the main folder
+// Copyright (c) Hercules dev team, licensed under GNU GPL.
+// See the LICENSE file
+// Portions Copyright (c) Athena Dev Teams
#ifndef _CORE_H_
#define _CORE_H_