Skip to content
This repository was archived by the owner on Dec 5, 2024. It is now read-only.

Commit dbb7a95

Browse files
Updating the git log when the head changes
Otherwise when a user changes the branch it will not update the log
1 parent a66bd28 commit dbb7a95

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/GitHub.Api/Git/RepositoryManager.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -360,6 +360,7 @@ private void UpdateHead()
360360
var head = repositoryPaths.DotGitHead.ReadAllLines().FirstOrDefault();
361361
Logger.Trace("UpdateHead: {0}", head ?? "[NULL]");
362362
UpdateCurrentBranchAndRemote(head);
363+
UpdateGitLog();
363364
}
364365

365366
private void UpdateCurrentBranchAndRemote(string head)

0 commit comments

Comments
 (0)