lib/apps/git.rb in dev-2.0.208 vs lib/apps/git.rb in dev-2.0.209
- old
+ new
@@ -111,9 +111,17 @@
`git reset --hard #{tagname}`
end
end
end
- def self.latest_tag
- `git describe --abbrev=0 --tags`.strip
+ def self.latest_tag directory=''
+ if directory.length==0
+ `git describe --abbrev=0 --tags`.strip
+ else
+ result=''
+ Dir.chdir(directory) do
+ result=`git describe --abbrev=0 --tags`.strip
+ end
+ result
+ end
end
end
\ No newline at end of file