Skip to content

Commit

Permalink
0.8.3
Browse files Browse the repository at this point in the history
  • Loading branch information
jzapdot authored and mob-sakai committed Jun 11, 2019
1 parent 066dc0f commit af905ea
Show file tree
Hide file tree
Showing 5 changed files with 24 additions and 6 deletions.
10 changes: 9 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,14 @@
# Changelog

## [0.8.2](https://github.com/mob-sakai/UpmGitExtension/tree/0.8.2) (2019-04-16)
## [0.8.3](https://github.com/mob-sakai/UpmGitExtension/tree/0.8.3) (2019-05-12)

[Full Changelog](https://github.com/mob-sakai/UpmGitExtension/compare/0.8.2...0.8.3)

**Fixed bugs:**

- Error on 'git ls-remote' for private repos accessed via SSH [\#34](https://github.com/mob-sakai/UpmGitExtension/issues/34)

## [0.8.2](https://github.com/mob-sakai/UpmGitExtension/tree/0.8.2) (2019-04-15)

[Full Changelog](https://github.com/mob-sakai/UpmGitExtension/compare/0.8.1...0.8.2)

Expand Down
6 changes: 3 additions & 3 deletions Editor/Scripts/AddPackageWindow.cs
Original file line number Diff line number Diff line change
Expand Up @@ -69,12 +69,12 @@ void OnGUI ()
using (var ccs = new EditorGUI.ChangeCheckScope ())
using (new EditorGUILayout.HorizontalScope ())
{
GUI.SetNextControlName ("Repogitory URL");
_url = EditorGUILayout.TextField ("Repogitory URL", _url);
GUI.SetNextControlName ("Repository URL");
_url = EditorGUILayout.TextField ("Repository URL", _url);

if (!_focused)
{
EditorGUI.FocusTextInControl ("Repogitory URL");
EditorGUI.FocusTextInControl ("Repository URL");
_focused = true;
}

Expand Down
2 changes: 1 addition & 1 deletion Editor/Scripts/UpmGitExtensionUI.cs
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ public void OnPackageSelectionChange (PackageInfo packageInfo)
_updateButton.text = "Update to";
_versionPopup.SetEnabled (false);
_updateButton.SetEnabled (false);
GitUtils.GetRefs (PackageUtils.GetRepoHttpUrl (_packageInfo.packageId), _refs, () =>
GitUtils.GetRefs (PackageUtils.GetRepoUrlForCommand (_packageInfo.packageId), _refs, () =>
{
_updateButton.SetEnabled (_currentRefName != _selectedRefName);
_versionPopup.SetEnabled (true);
Expand Down
10 changes: 10 additions & 0 deletions Editor/Scripts/Utils.cs
Original file line number Diff line number Diff line change
Expand Up @@ -186,6 +186,16 @@ public static string GetRepoHttpUrl (string packageId)
return "";
}

public static string GetRepoUrlForCommand (string packageId)
{
Match m = Regex.Match (packageId, "^[^@]+@([^#]+)(#.+)?$");
if (m.Success)
{
return m.Groups [1].Value;
}
return "";
}

public static string GetRefName (string packageId)
{
Match m = Regex.Match (packageId, "^[^@]+@[^#]+#(.+)$");
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "com.coffee.upm-git-extension",
"displayName": "UPM Git Extension",
"description": "This plugin extends the UI of Unity Package Manager for the packages installed with git.\n\n - Support GitHub, Bitbucket and GitLab\n - Add link to the repogitory\n - link to the online documents\n - Update the package with a specific tag/branch\n - Remove the package",
"version": "0.8.2",
"version": "0.8.3",
"unity": "2018.3",
"license": "MIT",
"repository": {
Expand Down

0 comments on commit af905ea

Please sign in to comment.