Remove .git directory when downloading googletest sources
Keeping the .git folder in the googletest directory may cause changing .idea/vcs.xml during IDEA import. .idea/vcs.xml is under source control, thus changing it litters a current diff.
This commit is contained in:
committed by
Vasily Levchenko
parent
276b4f19fa
commit
114f5ae890
Generated
+20
@@ -0,0 +1,20 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project version="4">
|
||||
<component name="IssueNavigationConfiguration">
|
||||
<option name="links">
|
||||
<list>
|
||||
<IssueNavigationLink>
|
||||
<option name="issueRegexp" value="((KT|KTI|IDEA)\-(\d+))" />
|
||||
<option name="linkRegexp" value="https://youtrack.jetbrains.com/issue/$1" />
|
||||
</IssueNavigationLink>
|
||||
<IssueNavigationLink>
|
||||
<option name="issueRegexp" value="#(\d+)" />
|
||||
<option name="linkRegexp" value="https://github.com/JetBrains/kotlin-native/issues/$1" />
|
||||
</IssueNavigationLink>
|
||||
</list>
|
||||
</option>
|
||||
</component>
|
||||
<component name="VcsDirectoryMappings">
|
||||
<mapping directory="" vcs="Git" />
|
||||
</component>
|
||||
</project>
|
||||
+3
@@ -103,6 +103,9 @@ open class GitDownloadTask @Inject constructor(
|
||||
|
||||
// Store info about used revision for the manual up-to-date check.
|
||||
upToDateChecker.storeRevisionInfo()
|
||||
|
||||
// Delete the .git directory of the cloned repo to avoid adding it to IDEA's VCS roots.
|
||||
outputDirectory.resolve(".git").deleteRecursively()
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user