git-multirepo 1.0.0.beta71 → 1.0.0.beta72

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: e6f50476b73107ee1d5d9c4e5f08abf9c5e4648ba967f922cf079ad7a2a3178e
4
- data.tar.gz: '0509621e3022242bd52f92c4aae8bb0b3e604dc97d4c073ba813486ed405268b'
3
+ metadata.gz: d32ed966109fd0ac0448838cab0867a518f2379b9a14176664fef098643e231d
4
+ data.tar.gz: ba357381f325c5cea7824ec4cba5c17008c6cb17d0e04222e43115b6d2cf5afa
5
5
  SHA512:
6
- metadata.gz: 00df2b71bbf6161821afd16b3bfa0429e29ce351edc6f070afe410d24495132271acc490da15d504d4ad9377ce7308ca4b3d074e7748c785c76b991fcc23b1c7
7
- data.tar.gz: d464307b98dd96a96c1c3a88b34979a4f4cfe7939a0bf44a9a6b621149b8b7dafbb4a588d303b91a874bb007f10d12d9777987da8ac9d6c4715ea430d2399ebd
6
+ metadata.gz: 79ca18b6c70fa4be903a4da4bedae9e2c572ec8813263d13d91ebada5828aef47b6a1519bc575de52c3093be50c407d7d851545e4313673b1695285c85c3d883
7
+ data.tar.gz: 01a3ee80409e769e7de377d7981858ecc933c04770911e0f0fdd09dbb780e2a39721367ac4c2b01d9019131e1afb534c5a5e23e691e52f75b3bbb259b007a563
@@ -2,6 +2,11 @@
2
2
 
3
3
  To install betas run `gem install git-multirepo --pre`
4
4
 
5
+ ## 1.0.0.beta72
6
+
7
+ - **Bug Fix:** Revert changes from beta 71
8
+ - **Enhancement:** Add a `--here` flag to the `clone` command to skip creating an intermediate directory to clone into
9
+
5
10
  ## 1.0.0.beta71
6
11
 
7
12
  - **Enhancement:** The `clone` command now clones all repos in the current directory instead of creating an intermediate directory (more flexible)
@@ -12,7 +12,8 @@ module MultiRepo
12
12
  [
13
13
  ['<url>', 'The repository to clone.'],
14
14
  ['<name>', 'The name of the containing folder that will be created.'],
15
- ['[<refname>]', 'The branch, tag or commit id to checkout. Checkout will use "master" if unspecified.']
15
+ ['[<refname>]', 'The branch, tag or commit id to checkout. Checkout will use "master" if unspecified.'],
16
+ ['[--here]', 'Checkout directly in the current directory instead of creating a new directory to put repos in'],
16
17
  ].concat(super)
17
18
  end
18
19
 
@@ -20,6 +21,7 @@ module MultiRepo
20
21
  @url = argv.shift_argument
21
22
  @name = argv.shift_argument
22
23
  @ref_name = argv.shift_argument || "master"
24
+ @here = argv.flag?("here")
23
25
  super
24
26
  end
25
27
 
@@ -34,7 +36,7 @@ module MultiRepo
34
36
 
35
37
  fail MultiRepoException, "A directory named #{@name} already exists" if Dir.exist?(@name)
36
38
 
37
- main_repo_path = "#{@name}"
39
+ main_repo_path = @here ? "#{@name}" : "#{@name}/#{@name}"
38
40
  main_repo = Repo.new(main_repo_path)
39
41
 
40
42
  # Recursively create the directory where we'll clone the main repo
@@ -1,5 +1,5 @@
1
1
  module MultiRepo
2
2
  NAME = "git-multirepo"
3
- VERSION = "1.0.0.beta71"
3
+ VERSION = "1.0.0.beta72"
4
4
  DESCRIPTION = "Track multiple Git repositories side-by-side."
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: git-multirepo
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0.beta71
4
+ version: 1.0.0.beta72
5
5
  platform: ruby
6
6
  authors:
7
7
  - Michaël Fortin