浏览代码

Damnable tabs!

Wes Mason 12 年之前
父节点
当前提交
1442c1e026
共有 1 个文件被更改,包括 8 次插入8 次删除
  1. 8 8
      src/Composer/Repository/Vcs/GitHubDriver.php

+ 8 - 8
src/Composer/Repository/Vcs/GitHubDriver.php

@@ -350,14 +350,14 @@ class GitHubDriver extends VcsDriver
 
     protected function authorizeOAuth()
     {
-		// If available use token from git config
-		exec('git config github.accesstoken', $output, $returnCode);
-		if ($returnCode === 0 && !empty($output[0]))
-		{
-			$this->io->write('Using Github OAuth token stored in git config (github.accesstoken)');
-			$this->io->setAuthorization($this->originUrl, $output[0], 'x-oauth-basic');
-			return;
-		}
+        // If available use token from git config
+        exec('git config github.accesstoken', $output, $returnCode);
+        if ($returnCode === 0 && !empty($output[0]))
+        {
+            $this->io->write('Using Github OAuth token stored in git config (github.accesstoken)');
+            $this->io->setAuthorization($this->originUrl, $output[0], 'x-oauth-basic');
+            return;
+        }
 
         $attemptCounter = 0;