<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -179,7 +179,7 @@ module GithubGem
 
     # Checks whether the current branch is not diverged from the remote branch
     def check_not_diverged_task
-      raise &quot;The current branch is diverged from the remote branch!&quot; if git.log.between('HEAD', git.branches[&quot;#{remote}/#{remote_branch}&quot;].gcommit).any?
+      raise &quot;The current branch is diverged from the remote branch!&quot; if git.log.between('HEAD', git.remote(remote).branch(remote_branch).gcommit).any?
     end
 
     # Checks whether the repository status ic clean
@@ -308,7 +308,15 @@ module GithubGem
         response = http.get(path)
         open(__FILE__, &quot;w&quot;) { |file| file.write(response.body) }
       end
-      puts &quot;Updated gem release tasks file with latest version.&quot;
+
+      relative_file = File.expand_path(__FILE__).sub(%r[^#{git.dir.path}/], '')
+      if git.status[relative_file] &amp;&amp; git.status[relative_file].type == 'M'
+        git.add(relative_file)
+        git.commit(&quot;Updated to latest gem release management tasks.&quot;)
+        puts &quot;Updated to latest version of gem release management tasks.&quot;
+      else
+        puts &quot;Release managament tasks already are at the latest version.&quot;
+      end
     end
 
   end</diff>
      <filename>tasks/github-gem.rake</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>fba44826bfb07612647acefb1e6300995b7bcff6</id>
    </parent>
  </parents>
  <author>
    <name>Willem van Bergen</name>
    <email>willem@vanbergen.org</email>
  </author>
  <url>http://github.com/wvanbergen/http_status_exceptions/commit/15075c716746f4936b18a2e128af83acfca98290</url>
  <id>15075c716746f4936b18a2e128af83acfca98290</id>
  <committed-date>2009-09-29T21:23:51-07:00</committed-date>
  <authored-date>2009-09-29T21:23:51-07:00</authored-date>
  <message>Updated to latest gem release management tasks.</message>
  <tree>66fe74de817255f12c8ab66c6d2e29354f12858e</tree>
  <committer>
    <name>Willem van Bergen</name>
    <email>willem@vanbergen.org</email>
  </committer>
</commit>
