projects
/
gitlive
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
994a691
)
Scm/Git/Repo.js
author
Alan Knowles
<alan@akbkhome.com>
Wed, 23 May 2012 10:04:02 +0000
(18:04 +0800)
committer
Alan Knowles
<alan@akbkhome.com>
Wed, 23 May 2012 10:04:02 +0000
(18:04 +0800)
Scm/Git/Repo.js
patch
|
blob
|
history
diff --git
a/Scm/Git/Repo.js
b/Scm/Git/Repo.js
index
c3c9cea
..
234edcb
100644
(file)
--- a/
Scm/Git/Repo.js
+++ b/
Scm/Git/Repo.js
@@
-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+/);
}