<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array">
    <added>
      <filename>spec/git_tag_lister_spec.rb</filename>
    </added>
  </added>
  <modified type="array">
    <modified>
      <diff>@@ -4,10 +4,8 @@ class GitTagLister
   end
   
   def tags
-    old_pwd = Dir.pwd
-    Dir.chdir @path
-    tags = `git tag`.split &quot;\n&quot;
-    Dir.chdir old_pwd
-    tags
+    Dir.chdir(@path) do
+      `git tag`.split &quot;\n&quot;
+    end
   end
 end
\ No newline at end of file</diff>
      <filename>lib/git_tag_lister.rb</filename>
    </modified>
    <modified>
      <diff>@@ -4,20 +4,21 @@ describe IterationList, &quot;when listing sensei iterations in a git repo containing
   
   before do
     Dir.mkdir '/tmp/foo'
-    Dir.chdir '/tmp/foo'
-    `git init`
-    `touch first.txt`
-    `git add .`
-    `git commit -am &quot;Initial commit&quot;`
-    `git tag iteration-1`
-    `touch test.txt`
-    `git add test.txt`
-    `git commit -m &quot;Added test file&quot;`
-    `git tag not-an-iteration`
-    `touch test2.txt`
-    `git add test2.txt`
-    `git commit -m &quot;Added test2 file&quot;`
-    `git tag iteration-2`
+    Dir.chdir '/tmp/foo' do
+      `git init`
+      `touch first.txt`
+      `git add .`
+      `git commit -am &quot;Initial commit&quot;`
+      `git tag iteration-1`
+      `touch test.txt`
+      `git add test.txt`
+      `git commit -m &quot;Added test file&quot;`
+      `git tag not-an-iteration`
+      `touch test2.txt`
+      `git add test2.txt`
+      `git commit -m &quot;Added test2 file&quot;`
+      `git tag iteration-2`
+    end
   end
   
   after do</diff>
      <filename>spec/iteration_list_spec.rb</filename>
    </modified>
  </modified>
  <removed type="array">
    <removed>
      <filename>spec/git_tag_lister_specs.rb</filename>
    </removed>
  </removed>
  <parents type="array">
    <parent>
      <id>eaef0a07d4a1855ceb73f1d0b7a6e05d3215b8e4</id>
    </parent>
  </parents>
  <author>
    <name>Danilo Sato</name>
    <email>dtsato@gmail.com</email>
  </author>
  <url>http://github.com/dtsato/sensei/commit/84eec7b2db72ee5a457e07182a686d3a34f96bd4</url>
  <id>84eec7b2db72ee5a457e07182a686d3a34f96bd4</id>
  <committed-date>2009-10-22T15:33:24-07:00</committed-date>
  <authored-date>2009-10-22T15:11:54-07:00</authored-date>
  <message>refactoring logic to change directory</message>
  <tree>6ec33cd3dcd77f1c01ce3e64bee7ef7164d6ee06</tree>
  <committer>
    <name>Danilo Sato</name>
    <email>dtsato@gmail.com</email>
  </committer>
</commit>
