Permalink
Browse files

Short circuit git repo check

  • Loading branch information...
1 parent 03feb88 commit 7dddbe7c3e4c9870f7c633f7a75f26564930e310 @JeremySkinner committed Feb 7, 2012
Showing with 5 additions and 3 deletions.
  1. +5 −3 HgUtils.ps1
View
@@ -1,11 +1,13 @@
function isHgDirectory() {
+ if(test-path ".git") {
+ return $false; #short circuit if git repo
+ }
+
if(test-path ".hg") {
return $true;
}
- if(test-path ".git") {
- return $false; #short circuit if git repo
- }
+
# Test within parent dirs
$checkIn = (Get-Item .).parent

0 comments on commit 7dddbe7

Please sign in to comment.