Scm/Git/Repo.js
authorAlan Knowles <alan@akbkhome.com>
Wed, 23 May 2012 10:04:02 +0000 (18:04 +0800)
committerAlan Knowles <alan@akbkhome.com>
Wed, 23 May 2012 10:04:02 +0000 (18:04 +0800)
Scm/Git/Repo.js

index c3c9cea..234edcb 100644 (file)
@@ -55,13 +55,11 @@ Repo = XObject.define(
         getStatus : function()
         {
             
-            // find out if we are up-to-date.   
-            var bl = this.git([ 'branch', {
-                'no-color' : true,
-                'verbose' : true,
-                'no-abbrev'  : true,
-                'a' : true
-            }]).split("\n");
+            // find out if we are up-to-date.
+            //git ls-remote origin -h refs/heads/master
+            var bl = this.git([ 'ls-remote ', 'origin', {
+                'h' : 'refs/head/master',
+            }]).split(/\s+/);
             
             
         }