Skip to content

Commit

Permalink
fix: null head parsing recent commits
Browse files Browse the repository at this point in the history
  • Loading branch information
ViscousPot committed Jan 3, 2025
1 parent 110ca20 commit 6783a01
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -442,7 +442,7 @@ class GitManager(private val context: Context, private val settingsManager: Sett
val repo = FileRepository("$gitDirPath/${context.getString(R.string.git_path)}")
val revWalk = RevWalk(repo)

val localHead = repo.resolve(Constants.HEAD)
val localHead = repo.resolve(Constants.HEAD) ?: return listOf()
revWalk.markStart(revWalk.parseCommit(localHead))
log(LogType.RecentCommits, "HEAD parsed")

Expand Down

0 comments on commit 6783a01

Please sign in to comment.