Skip to content

Commit

Permalink
#19
Browse files Browse the repository at this point in the history
  • Loading branch information
sboulema committed Mar 29, 2017
1 parent 11b8a51 commit c5c828f
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 3 deletions.
10 changes: 9 additions & 1 deletion TSVN/Helpers/CommandHelper.cs
Original file line number Diff line number Diff line change
Expand Up @@ -60,9 +60,17 @@ public static List<string> GetPendingChanges()

public static string GetRepositoryRoot(string path = "")
{
// Try to found the current working folder, either by open document or by open solution
if (string.IsNullOrEmpty(path))
{
path = Path.GetDirectoryName(Dte.ActiveDocument != null ? Dte.ActiveDocument.FullName : Dte.Solution.FullName);
if (Dte.ActiveDocument != null)
{
path = Path.GetDirectoryName(Dte.ActiveDocument.FullName);
}
else if (!string.IsNullOrEmpty(Dte.Solution.FileName))
{
path = Path.GetDirectoryName(Dte.Solution.FullName);
}
}

var proc = new Process
Expand Down
2 changes: 1 addition & 1 deletion TSVN/source.extension.vsixmanifest
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="utf-8"?>
<PackageManifest Version="2.0.0" xmlns="http://schemas.microsoft.com/developer/vsx-schema/2011" xmlns:d="http://schemas.microsoft.com/developer/vsx-schema-design/2011">
<Metadata>
<Identity Id="07fd7462-cd4b-433b-9ab5-8ad3ad87bc65" Version="3.5" Language="en-US" Publisher="Samir L. Boulema" />
<Identity Id="07fd7462-cd4b-433b-9ab5-8ad3ad87bc65" Version="3.6" Language="en-US" Publisher="Samir L. Boulema" />
<DisplayName>TSVN</DisplayName>
<Description>Control TortoiseSVN from within Visual Studio</Description>
<MoreInfo>https://visualstudiogallery.msdn.microsoft.com/64bfec35-0ac1-48bc-b9d0-921ecb803e53</MoreInfo>
Expand Down
2 changes: 1 addition & 1 deletion appveyor.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
version: 3.5.{build}
version: 3.6.{build}
skip_tags: true
configuration:
- Release
Expand Down

0 comments on commit c5c828f

Please sign in to comment.