Skip to content

Can't Init New Repository - User.Name is missing or invalid #722

Closed
@rubberduck203

Description

@rubberduck203

Hi there, I've downloaded this today and was attempting to try the source control. When pressing the "Init New Report from this project" button i get the following message.

Can you please help? Thanks, Taareq

************** Exception Text ************** 
LibGit2Sharp.LibGit2SharpException: Configuration value 'user.name' is missing or invalid. 
    at LibGit2Sharp.Configuration.NormalizeUserSetting(Boolean shouldThrowIfNotFound, String entryName, String currentValue, Func`1 defaultValue) 
        in c:\projects\libgit2sharp\LibGit2Sharp\Configuration.cs:line 427 
    at LibGit2Sharp.Configuration.BuildSignature(DateTimeOffset now, Boolean shouldThrowIfNotFound) 
        in c:\projects\libgit2sharp\LibGit2Sharp\Configuration.cs:line 404 
    at LibGit2Sharp.RepositoryExtensions.Commit(IRepository repository, String message, CommitOptions options) 
        in c:\projects\libgit2sharp\LibGit2Sharp\RepositoryExtensions.cs:line 239 
    at Rubberduck.SourceControl.GitProvider.InitVBAProject(String directory) 
        in c:\Users\Mathieu\Source\Repos\Rubberduck\Rubberduck.SourceControl\GitProvider.cs:line 150 
    at Rubberduck.UI.SourceControl.SourceControlPresenter.OnInitNewRepository(Object sender, EventArgs e) 
        in c:\Users\Mathieu\Source\Repos\Rubberduck\RetailCoder.VBE\UI\SourceControl\SourceControlPresenter.cs:line 134 
    at Rubberduck.UI.SourceControl.SourceControlPanel.RaiseGenericEvent(EventHandler`1 handler, EventArgs e) 
        in c:\Users\Mathieu\Source\Repos\Rubberduck\RetailCoder.VBE\UI\SourceControl\SourceControlPanel.cs:line 110 
    at Rubberduck.UI.SourceControl.SourceControlPanel.InitRepoButton_Click(Object sender, EventArgs e) 
        in c:\Users\Mathieu\Source\Repos\Rubberduck\RetailCoder.VBE\UI\SourceControl\SourceControlPanel.cs:line 103 
    at System.Windows.Forms.ToolStripItem.RaiseEvent(Object key, EventArgs e) 
    at System.Windows.Forms.ToolStripButton.OnClick(EventArgs e) 
    at System.Windows.Forms.ToolStripItem.HandleClick(EventArgs e) 
    at System.Windows.Forms.ToolStripItem.HandleMouseUp(MouseEventArgs e) 
    at System.Windows.Forms.ToolStripItem.FireEventInteractive(EventArgs e, ToolStripItemEventType met) 
    at System.Windows.Forms.ToolStripItem.FireEvent(EventArgs e, ToolStripItemEventType met) 
    at System.Windows.Forms.ToolStrip.OnMouseUp(MouseEventArgs mea) 
    at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks) 
    at System.Windows.Forms.Control.WndProc(Message& m) 
    at System.Windows.Forms.ScrollableControl.WndProc(Message& m) 
    at System.Windows.Forms.ToolStrip.WndProc(Message& m) 
    at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m) 
    at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m) 
    at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam) 

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions