svn_command_helper 0.3.6 → 0.3.7

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 9d3f6d5a96922029a3f8da3753010fa54db3a763
4
- data.tar.gz: 34f04762e8b3a0e57049b454f15ab3531e19f592
3
+ metadata.gz: f4e80b45f5b5347856df9da7e81016092b5a25a2
4
+ data.tar.gz: bbc1562926a5722fccef9b6b3f82a0812e3a168a
5
5
  SHA512:
6
- metadata.gz: c7462c878848c66b0e0c32ef0b7f463a36802b6f9a2c683471b9912aa3123d716886667ac88dfade2b5aaea079853a37c8dfe3706dc5845dc65721c5b21d412b
7
- data.tar.gz: 73d0b562e8ef4f0f91f40af060e5f8b6e2c54ac393d65cea3940175ea6b5f2a94e2dad12d865be4a2d0434c9483b40ef05e95915caae50fe44064f7ed8500368
6
+ metadata.gz: 3ec4bc0096b1f65f2c8c5f1394320d5537fc8cf51dd4e8ef62ae261eb5760ffc3a9a544810b2f263dde458f4b83c129b5c6ad105bb20eb2addcb7bc5c981f9f6
7
+ data.tar.gz: bf17e28a94dfaf1a18a9f576edb11531adc275f42256346e8d0b84bcd93a4e50518e577c59bc5cb7f81162de593cca5cc2556274da19109da5c0bcc35a53408d
@@ -117,7 +117,11 @@ module SvnCommandHelper
117
117
  # @param [path string like] path target path
118
118
  # @param [depth] depth --set-depth for only new updated dirs
119
119
  def update_deep(path, depth = nil)
120
- root = Pathname.new(Svn.working_copy_root_path(path)).realpath
120
+ exist_path = path
121
+ until File.exist?(exist_path)
122
+ exist_path = File.dirname(exist_path)
123
+ end
124
+ root = Pathname.new(Svn.working_copy_root_path(exist_path)).realpath
121
125
  end_path = Pathname.new(path.to_s).expand_path.realpath
122
126
  parents = [end_path]
123
127
  while parents.first != root
@@ -1,4 +1,4 @@
1
1
  module SvnCommandHelper
2
2
  # version
3
- VERSION = "0.3.6"
3
+ VERSION = "0.3.7"
4
4
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: svn_command_helper
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.6
4
+ version: 0.3.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Narazaka