From 7be7120db4dc446ffd67c1909fb22d10fb266eba Mon Sep 17 00:00:00 2001 From: Baptiste Fontaine Date: Thu, 11 Feb 2016 16:59:55 +0100 Subject: [PATCH] git-svn-abandon 0.0.1 (import from head-only) Closes Homebrew/homebrew#49083. Signed-off-by: Baptiste Fontaine --- Formula/git-svn-abandon.rb | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 Formula/git-svn-abandon.rb diff --git a/Formula/git-svn-abandon.rb b/Formula/git-svn-abandon.rb new file mode 100644 index 0000000000..555137163d --- /dev/null +++ b/Formula/git-svn-abandon.rb @@ -0,0 +1,21 @@ +class GitSvnAbandon < Formula + desc "History-preserving svn-to-git migration" + homepage "https://github.com/nothingmuch/git-svn-abandon" + url "https://github.com/nothingmuch/git-svn-abandon/archive/0.0.1.tar.gz" + sha256 "65c11b5e575e6af4d21ef7624941c4581a5570748d50e38714bd33fee56e4485" + head "https://github.com/nothingmuch/git-svn-abandon.git" + + bottle :unneeded + + def install + bin.install Dir["git-svn-abandon-*"] + end + + test do + system "git", "init" + system "git", "symbolic-ref", "HEAD", "refs/heads/trunk" + system "git", "commit", "--allow-empty", "-m", "foo" + system "git", "svn-abandon-fix-refs" + assert_equal "* master", shell_output("git branch -a").chomp + end +end