<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -108,6 +108,8 @@ class GitBranchWindowHelper:
 
     def update_ui(self):
         self._action_group.set_sensitive(self._window.get_active_document() != None)
+	if self._window.get_active_document() != None:
+		self.on_git_branch_activate(&quot;&quot;)
     
     def _set_status(self, text=None):
         self._statusbar.pop(self._context_id)
@@ -139,8 +141,7 @@ class GitBranchWindowHelper:
     def on_git_branch_activate(self, action):
         label=None
         base_dir = os.path.dirname(self._window.get_active_document().get_uri_for_display())
-        out=commands.getoutput('cd ' + base_dir + '\ngit branch')
-
+        out=commands.getoutput('cd &quot;' + base_dir + '&quot; &amp;&amp; git branch')
         for el in out.split('\n'):
             if  el[0] == '*':
                 label = el</diff>
      <filename>git_branch/__init__.py</filename>
    </modified>
  </modified>
  <removed type="array">
    <removed>
      <filename>git_branch/__init__.pyc</filename>
    </removed>
  </removed>
  <parents type="array">
    <parent>
      <id>e4db2d7f203557b4a2afde62b0ab2a33e3a6eb9e</id>
    </parent>
  </parents>
  <author>
    <name>Rodrigo Urubatan</name>
    <email>rodrigo@urubatan.com.br</email>
  </author>
  <url>http://github.com/ozeias/gedit_git_branch/commit/78d4f1799734ce08dbd9215c7dc02f6c518d0a38</url>
  <id>78d4f1799734ce08dbd9215c7dc02f6c518d0a38</id>
  <committed-date>2008-06-05T17:04:03-07:00</committed-date>
  <authored-date>2008-06-05T17:04:03-07:00</authored-date>
  <message>added auto update for file switch and fixed problem with directories with spaces in the name</message>
  <tree>f8fe622c71ad122f6400ae29cef3e6cb030225d9</tree>
  <committer>
    <name>Rodrigo Urubatan</name>
    <email>rodrigo@urubatan.com.br</email>
  </committer>
</commit>
