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

Exceptions thrown when initializing repository in macOS #331

@meaghanlewis

Description

@meaghanlewis

Description

I'm getting exceptions when I try to initialize a new repository in Unity for Mac. This seems to be because I have 2 different versions of git. The strange thing is that both versions of git have lfs installed.

Steps to repro

  • Create a new project
  • Import the GitHub extension
  • Show GitHub window, then click on Initialize repository

What happens

Instead of the repository being initialized and an initial commit being created, a couple things happen.

1. I see an exception thrown about lsf install

170919-13:25:59 TRACE [ 1] <GitClient>                         LfsInstall
170919-13:25:59 TRACE [ 7] <TaskManager>                       Exception on exclusive thread: 1 git lsf install

2. I also see an exception about lfs not being a command

git: 'lfs' is not a git command. See 'git --help'.
  at GitHub.Unity.ProcessTask`1+<RunWithReturn>c__AnonStorey0[System.String].<>m__0 () [0x0010a] in C:\jenkins\workspace\Unity\Unity\src\GitHub.Api\NewTaskSystem\ProcessTask.cs:301 
  at GitHub.Unity.ProcessWrapper.Run () [0x00332] in C:\jenkins\workspace\Unity\Unity\src\GitHub.Api\NewTaskSystem\ProcessTask.cs:170 
  at GitHub.Unity.ProcessTask`1[T].RunWithReturn (Boolean success) [0x0005c] in C:\jenkins\workspace\Unity\Unity\src\GitHub.Api\NewTaskSystem\ProcessTask.cs:311 
  at GitHub.Unity.TaskBase`1[TResult].<TaskBase>m__0 () [0x00000] in C:\jenkins\workspace\Unity\Unity\src\GitHub.Api\NewTaskSystem\TaskBase.cs:406 

3. My repo does not appear to be initialized
initialize repo in mac
I press the button and nothing happens. Have to restart Unity to see confirm my repo was initialized.

After restarting and seeing the repo was initialized, I do not have an initial commit (like I would using Unity for Windows). And looking at the log I see this exception:

170919-13:54:50 TRACE [14] <TaskManager>                       Exception on concurrent thread: 2 git log
fatal: your current branch 'master' does not have any commits yet
  at GitHub.Unity.ProcessTaskWithListOutput`1+<RunWithReturn>c__AnonStorey0[GitHub.Unity.GitLogEntry].<>m__0 () [0x000cd] in C:\jenkins\workspace\Unity\Unity\src\GitHub.Api\NewTaskSystem\ProcessTask.cs:423 
  at GitHub.Unity.ProcessWrapper.Run () [0x00332] in C:\jenkins\workspace\Unity\Unity\src\GitHub.Api\NewTaskSystem\ProcessTask.cs:170 
  at GitHub.Unity.ProcessTaskWithListOutput`1[GitHub.Unity.GitLogEntry].RunWithReturn (Boolean success) [0x0005c] in C:\jenkins\workspace\Unity\Unity\src\GitHub.Api\NewTaskSystem\ProcessTask.cs:432 
  at GitHub.Unity.TaskBase`1[TResult].<TaskBase>m__0 () [0x00000] in C:\jenkins\workspace\Unity\Unity\src\GitHub.Api\NewTaskSystem\TaskBase.cs:406 
  at System.Threading.Tasks.Task`1[System.Collections.Generic.List`1[GitHub.Unity.GitLogEntry]].InvokeFuture (System.Object futureAsObj) [0x00000] in <filename unknown>:0 
  at System.Threading.Tasks.Task.InnerInvoke () [0x00000] in <filename unknown>:0 

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions