This repository was archived by the owner on Dec 5, 2024. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed
src/UnityExtension/Assets/Editor/GitHub.Unity/UI Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -187,7 +187,6 @@ public override void Update()
187
187
188
188
private void MaybeUpdateData ( )
189
189
{
190
- string updatedRepoBranch = null ;
191
190
string updatedRepoRemote = null ;
192
191
string updatedRepoUrl = DefaultRepoUrl ;
193
192
@@ -200,15 +199,16 @@ private void MaybeUpdateData()
200
199
hasRunMaybeUpdateDataWithRepository = true ;
201
200
202
201
var repositoryCurrentBranch = Repository . CurrentBranch ;
203
- updatedRepoBranch = repositoryCurrentBranch . HasValue ? repositoryCurrentBranch . Value . Name : null ;
204
-
205
- var repositoryCloneUrl = Repository . CloneUrl ;
206
- updatedRepoUrl = repositoryCloneUrl != null ? repositoryCloneUrl . ToString ( ) : DefaultRepoUrl ;
202
+ var updatedRepoBranch = repositoryCurrentBranch . HasValue ? repositoryCurrentBranch . Value . Name : null ;
207
203
208
204
var repositoryCurrentRemote = Repository . CurrentRemote ;
209
205
if ( repositoryCurrentRemote . HasValue )
210
206
{
211
207
updatedRepoRemote = repositoryCurrentRemote . Value . Name ;
208
+ if ( repositoryCurrentRemote . Value . Url != null )
209
+ {
210
+ updatedRepoUrl = repositoryCurrentRemote . Value . Url ;
211
+ }
212
212
}
213
213
214
214
if ( repoRemote != updatedRepoRemote )
You can’t perform that action at this time.
0 commit comments