braid 1.0.11 → 1.0.12

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
  SHA1:
3
- metadata.gz: cab5b4a0635df158bf25ffe1fa9d32f5b7f3bf30
4
- data.tar.gz: b435890d0ed321e80b89cb56b71a46c6e638add8
3
+ metadata.gz: 24d46a675989e3efc64a5cd7cbcf16b200a31a8b
4
+ data.tar.gz: cffec3974cfe536a77cae313e683bfeb634835cd
5
5
  SHA512:
6
- metadata.gz: 16333b71784a667c94a8250e26f0ce82c5edf73060b388538cb5fbdf9cd892aab10fef7375e50592d358c0e8e90cc4cd693ec94120e7c448169fb639a47cdf76
7
- data.tar.gz: c65b7965793f1a0350e480f9eb395073e2a875a7a42f2d5c4d900effe63a9d3af8c70ae092c043829815ecfd73afbbf1e19f806c2cd1ac1840b6c4595ece9301
6
+ metadata.gz: afad55372e3be6ac29f9a94e7e4c53eb5c3333fbf825040fb5ebdb46397a18dd1a8d0a978d34b4c280d7cf2bcbd28e51502cd58f068bbbebcf8bb38f670b3b82
7
+ data.tar.gz: 365c4c3c0eab6b3f000c183376175e7bdbb14e7e0353dc3d380a8b6d0842bb49076423c6530725b19b7bef9c29782d9db184110b7fe032248b4e0004137b1e76
@@ -5,19 +5,22 @@ module Braid
5
5
  module Commands
6
6
  class Push < Command
7
7
  def run(path, options = {})
8
- mirror = config.get!(path)
8
+ mirror = config.get!(path)
9
9
 
10
- #mirror.fetch
10
+ setup_remote(mirror)
11
+ mirror.fetch
11
12
 
12
13
  base_revision = git.rev_parse(mirror.remote)
13
14
  unless mirror.merged?(base_revision)
14
15
  msg 'Mirror is not up to date. Stopping.'
16
+ clear_remote(mirror, options)
15
17
  return
16
18
  end
17
19
 
18
20
  diff = mirror.diff
19
21
  if diff.empty?
20
22
  msg 'No local changes found. Stopping.'
23
+ clear_remote(mirror, options)
21
24
  return
22
25
  end
23
26
 
data/lib/braid/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Braid
2
- VERSION = '1.0.11'
2
+ VERSION = '1.0.12'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: braid
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.11
4
+ version: 1.0.12
5
5
  platform: ruby
6
6
  authors:
7
7
  - Cristi Balan