Skip to content

Commit

Permalink
Apply Matthias Luescher patch trevorr#37 - 'Fix MoveProjectFrom/MoveP…
Browse files Browse the repository at this point in the history
…rojectTo interactions'

Signed-off-by: Július Adam <adam@elcom.sk>
  • Loading branch information
abevoelker authored and JAD-SVK committed Jul 4, 2016
1 parent 73782c4 commit 160309d
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion Vss2Git/VssPathMapper.cs
Original file line number Diff line number Diff line change
Expand Up @@ -540,8 +540,12 @@ public VssProjectInfo MoveProjectTo(VssItemName project, VssItemName subproject,
if (parentInfo != null)
{
// propagate the destroyed flag from the new parent
subprojectInfo.Parent = parentInfo;
subprojectInfo.Destroyed |= parentInfo.Destroyed;
if (subprojectInfo.Destroyed)
{
// otherwise the parent will be updated in MoveProjectFrom
subprojectInfo.Parent = parentInfo;
}
}
else
{
Expand Down

0 comments on commit 160309d

Please sign in to comment.