projects
/
gitlive
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
749c54e
)
Git.vala
author
Alan Knowles
<alan@roojs.com>
Wed, 13 Mar 2019 07:15:04 +0000
(15:15 +0800)
committer
Alan Knowles
<alan@roojs.com>
Wed, 13 Mar 2019 07:15:04 +0000
(15:15 +0800)
Git.vala
patch
|
blob
|
history
diff --git
a/Git.vala
b/Git.vala
index
cc45575
..
d8ef3c0
100644
(file)
--- a/
Git.vala
+++ b/
Git.vala
@@
-93,10
+93,13
@@
namespace GitLive {
}
Ggit.Branch? getBranch(string remote_name, string remote_branch_name)
{
}
Ggit.Branch? getBranch(string remote_name, string remote_branch_name)
{
- GLib.debug("lookup %s:%s", remote_name, remote_branch_name);
+
+ var target = remote_branch_name.replace("refs/heads/", remote_name+"/");
+
+
foreach(var br in this.branches) {
foreach(var br in this.branches) {
- GLib.debug("test:%s=%s",
"refs/remotes/" + br.get_upstream().get_shorthand() , remote_branch_name
);
- if (
"refs/remotes/" +
br.get_upstream().get_shorthand() == remote_branch_name) {
+ GLib.debug("test:%s=%s",
br.get_upstream().get_shorthand() , target
);
+ if ( br.get_upstream().get_shorthand() == remote_branch_name) {
return br;
}
return br;
}