Version control: Fix handling of metadata of files not stored in the project. No infinite recursion anymore.

[DEVELOPMENT ENVIRONMENT]
* BUG: Version control: Fix handling of metadata of files not stored in the project. No infinite recursion anymore.
This commit is contained in:
gambas 2017-10-21 21:15:12 +02:00
parent 0b96e3fb64
commit 9d3ec8d46b

View file

@ -6458,9 +6458,9 @@ Public Sub HasFlag(sPath As String, iFlag As Integer, Optional bRec As Boolean)
If Not $cPathFlag Then Return
If Not sPath Then Return
If File.IsRelative(sPath) Then sPath = Project.Dir &/ sPath
If Not IsProjectPath(sPath) Then Return
If BTst($cPathFlag[sPath], iFlag) Then Return True
If Not bRec Then Return
If (sPath &/ "/") = (Project.Dir &/ "/") Then Return
Return HasFlag(File.Dir(sPath), iFlag, bRec)
End