Merge branch 'release/2.1' into release/2.2

This commit is contained in:
John Luo 2018-06-29 10:56:50 -07:00
commit 4dd62a6863
1 changed files with 3 additions and 2 deletions

View File

@ -25,8 +25,9 @@ namespace RepoTasks
{
if (Directory.Exists(source))
{
Log.LogMessage(MessageImportance.High, $"Adding directory: {source}");
archive.AddDirectory(source, progress);
var trimmedSource = source.TrimEnd(new char[] { '\\', '/' });
Log.LogMessage(MessageImportance.High, $"Adding directory: {trimmedSource}");
archive.AddDirectory(trimmedSource, progress);
}
else
{