gollum-rugged_adapter 0.99.2 → 0.99.3

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: ae443605ad0dd343310fee4b9bac502bc21654108468f91002a1686be978a587
4
- data.tar.gz: 957d8466bed97f5287131cde9aa63a7f88629ace4363680c8c0d1b90e30775b7
3
+ metadata.gz: fccaae999b3b1730aa469a58eb2835fbafc1808f59297753048614075da4569a
4
+ data.tar.gz: 1e3e56795ad845bce602c85d6ce20d8ddfda86e7685edcb289aefd0e69d9b5ef
5
5
  SHA512:
6
- metadata.gz: d4f70708545e36a1b0695ee0ea02860ca60187439e1c23d506ba3b11cb7d902666c943d6f0abcce4ccb0c7c0c3374bb3b4dda444200bf3e57ca0ad32ec23b1ee
7
- data.tar.gz: 7a1b3a517bf612f7dd019b68b31ee4e0cb0eae6a8dd282e14b6a09e511957239663ddd1e3a0075dfd97d0492c8967d1f3d11186574937e6836a50cea737e3674
6
+ metadata.gz: 572f6127991b013e95f2c54eac7c62606afa491bdf30045d98341e8755b5e11d6a1822227153f2238972f753e50dbadf82817d13bfcc3df9d5ccd774bdaee62d
7
+ data.tar.gz: 6da3dbf8c4b59532a59491f3664843c5aea36d185ff648b588c8fa7287cbcad5d7c8349b97dfd9a96df9a2f0ff6706582bbbbb0c5da045ec01328ae41089c8a8
@@ -346,6 +346,7 @@ module Gollum
346
346
  skipped = 0
347
347
  current_path = options[:path].dup if options[:path]
348
348
  current_path = nil if current_path == ''
349
+ renamed_path = current_path.dup
349
350
  track_pathnames = true if current_path && options[:follow]
350
351
  limit = options[:limit].to_i
351
352
  offset = options[:offset].to_i
@@ -358,12 +359,13 @@ module Gollum
358
359
  # Skip merge commits
359
360
  next if c.parents.length > 1
360
361
  end
361
-
362
362
  if !current_path || commit_touches_path?(c, current_path, options[:follow], walker)
363
363
  # This is a commit we care about, unless we haven't skipped enough
364
364
  # yet
365
365
  skipped += 1
366
- commits.push(Gollum::Git::Commit.new(c, track_pathnames ? current_path.dup : nil)) if skipped > offset
366
+
367
+ commits.push(Gollum::Git::Commit.new(c, track_pathnames ? renamed_path : nil)) if skipped > offset
368
+ renamed_path = current_path.dup
367
369
  end
368
370
  end
369
371
  walker.reset
@@ -1,7 +1,7 @@
1
1
  module Gollum
2
2
  module Lib
3
3
  module Git
4
- VERSION = '0.99.2'
4
+ VERSION = '0.99.3'
5
5
  end
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: gollum-rugged_adapter
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.99.2
4
+ version: 0.99.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Bart Kamphorst, Dawa Ometto