gitty 0.3.0 → 0.3.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -10,7 +10,7 @@ remote_branch=$(git show-ref origin/--hooks--)
10
10
  [ "${remote_branch%% *}" != "$local_rev" ] && (
11
11
  echo "Hook updates were applied:" 1>&2
12
12
  GIT_OBJECT_DIRECTORY=../../objects git branch origin/--hooks-- ${remote_branch%% *} -f 1>&2
13
- GIT_OBJECT_DIRECTORY=../../objects git reset --hard ${remote_branch%% *} 1>&2
13
+ GIT_OBJECT_DIRECTORY=../../objects git merge ${remote_branch%% *} 1>&2
14
14
  )
15
15
  )
16
16
 
@@ -1,4 +1,4 @@
1
1
  #!/usr/bin/env ruby
2
- $: << File.dirname(__FILE__) + "/../lib/"
2
+ $:.unshift(File.dirname(__FILE__) + "/../lib/")
3
3
  require "gitty"
4
4
  Gitty::HookCommand.new(ARGV).run
@@ -34,7 +34,8 @@ class Gitty::HookCommand::Init < Gitty::Runner
34
34
  cmd(*%w[git symbolic-ref HEAD refs/heads/--hooks--])
35
35
  cmd(*%w[git commit --allow-empty -m initial\ commit])
36
36
  end
37
- cmd(*%w[git reset --hard] + hooks_rev) if hooks_rev
37
+ cmd("git reset --hard #{hooks_rev}") if hooks_rev
38
+
38
39
  end
39
40
  end
40
41
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: gitty
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.0
4
+ version: 0.3.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tim Harper