-
Notifications
You must be signed in to change notification settings - Fork 450
Fix the repository detection and initialization #37
Conversation
| assetsGitignore.CreateFile(); | ||
| })) | ||
| .Then(GitClient.Add(filesForInitialCommit)) | ||
| .Then(GitClient.Commit("Initial commit", null)) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Did you try GitClient.AddAndCommit? I was going to log an issue for it because it gave us some trouble previously.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I didn't, no.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'll throw up an issue for it
| } | ||
| } | ||
|
|
||
| [Location("views/branches.yaml", LocationAttribute.Location.UserFolder)] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This path looks incorrect
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah, that's from my test branch. We're not using this yet, I'll need to pull in the rest of the branch view changes for this one, and then the path needs to be in the project (and we need some .gitignore action for this stuff)
| Environment.GitExecutablePath = gitSetup.GitExecutablePath; | ||
| else | ||
| Environment.GitExecutablePath = await LookForGitInstallationPath(); | ||
| Logger.Trace("RestartRepository"); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Update trace message
Things have been horribly broken in this area since the task rewrite. This hopefully fixes most of it and also caches data so we don't keep redetecting the repository every time we reload.
The UI is still thinking it's not initialized for a few seconds when Unity is loading, a fix for that will come separately.