Skip to content

Commit

Permalink
compiler fix for clang
Browse files Browse the repository at this point in the history
  • Loading branch information
aknoerig committed Apr 15, 2016
1 parent 8d664e7 commit d436b4c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/version/partschecker.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -182,6 +182,7 @@ bool PartsChecker::checkIfClean(const QString & repoPath,

git_reference *head = NULL;
git_reference * resolved_head = NULL;
git_ref_t ref_type;
QString branchName;
bool result = false;
git_status_list *status_list = NULL;
Expand Down Expand Up @@ -216,7 +217,7 @@ bool PartsChecker::checkIfClean(const QString & repoPath,
}

errorNumber++;
git_ref_t ref_type = git_reference_type(head);
ref_type = git_reference_type(head);
if (ref_type == GIT_REF_SYMBOLIC) {
error = git_reference_resolve(&resolved_head, head);
if (error) {
Expand Down

0 comments on commit d436b4c

Please sign in to comment.