@@ -9,3 +9,3 @@ | ||
| var TEAMS = 'teams'; | ||
| var TEAMS = 'src'; | ||
| var DOT_GIT = '.git'; | ||
@@ -33,7 +33,4 @@ var REFS = 'refs'; | ||
| var teamXXX = _findPlayer(); | ||
| if (fs.existsSync('.git')) { | ||
| return '.'; | ||
| } | ||
| if (fs.existsSync(path.join(TEAMS,'.git'))) { | ||
| return 'teams'; | ||
| return TEAMS; | ||
| } | ||
@@ -43,2 +40,5 @@ if (fs.existsSync(path.join(TEAMS, teamXXX, '.git'))) { | ||
| } | ||
| if (fs.existsSync('.git')) { | ||
| return '.'; | ||
| } | ||
| return null; | ||
@@ -308,3 +308,3 @@ } | ||
| if (gitPath === null) { | ||
| throw "Couldn't find a valid git repo in ., teams/ or teams/" + player; | ||
| throw "Couldn't find a valid git repo in src/ or src/" + player; | ||
| } | ||
@@ -311,0 +311,0 @@ isClean(gitPath, function(status) { |
+1
-1
@@ -10,3 +10,3 @@ { | ||
| ], | ||
| "version": "3.0.1", | ||
| "version": "3.0.2", | ||
| "license": "MIT", | ||
@@ -13,0 +13,0 @@ "repository": { |
AI-detected potential code anomaly
Supply chain riskAI has identified unusual behaviors that may pose a security risk.
Found 2 instances
AI-detected potential code anomaly
Supply chain riskAI has identified unusual behaviors that may pose a security risk.
Found 2 instances
49420
-0.02%