Accepting request 1035324 from utilities
OBS-URL: https://build.opensuse.org/request/show/1035324 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/homeshick?expand=0&rev=5
This commit is contained in:
commit
84636fc684
100
git-protocol-file-allow.patch
Normal file
100
git-protocol-file-allow.patch
Normal file
@ -0,0 +1,100 @@
|
|||||||
|
diff --git a/lib/commands/clone.sh b/lib/commands/clone.sh
|
||||||
|
index a4e1c1b..4e8f10f 100644
|
||||||
|
--- a/lib/commands/clone.sh
|
||||||
|
+++ b/lib/commands/clone.sh
|
||||||
|
@@ -22,16 +22,16 @@ function clone {
|
||||||
|
local git_out
|
||||||
|
version_compare "$GIT_VERSION" 1.6.5
|
||||||
|
if [[ $? != 2 ]]; then
|
||||||
|
- git_out=$(git clone --recursive "$git_repo" "$repo_path" 2>&1) || \
|
||||||
|
+ git_out=$(git -c protocol.file.allow=always clone --recursive "$git_repo" "$repo_path" 2>&1) || \
|
||||||
|
err "$EX_SOFTWARE" "Unable to clone $git_repo. Git says:" "$git_out"
|
||||||
|
success
|
||||||
|
else
|
||||||
|
- git_out=$(git clone "$git_repo" "$repo_path" 2>&1) || \
|
||||||
|
+ git_out=$(git -c protocol.file.allow=always clone "$git_repo" "$repo_path" 2>&1) || \
|
||||||
|
err "$EX_SOFTWARE" "Unable to clone $git_repo. Git says:" "$git_out"
|
||||||
|
success
|
||||||
|
|
||||||
|
pending 'submodules' "$git_repo"
|
||||||
|
- git_out=$(cd "$repo_path"; git submodule update --init 2>&1) || \
|
||||||
|
+ git_out=$(cd "$repo_path"; git -c protocol.file.allow=always submodule update --init 2>&1) || \
|
||||||
|
err "$EX_SOFTWARE" "Unable to clone submodules for $git_repo. Git says:" "$git_out"
|
||||||
|
success
|
||||||
|
fi
|
||||||
|
diff --git a/test/fixtures/dotfiles.sh b/test/fixtures/dotfiles.sh
|
||||||
|
index cd7442f..cc131d6 100644
|
||||||
|
--- a/test/fixtures/dotfiles.sh
|
||||||
|
+++ b/test/fixtures/dotfiles.sh
|
||||||
|
@@ -75,7 +75,7 @@ EOF
|
||||||
|
)
|
||||||
|
|
||||||
|
cd "$dotfiles"
|
||||||
|
- git submodule add "$dotfiles_vim_submodule" home/.vim
|
||||||
|
+ git -c protocol.file.allow=always submodule add "$dotfiles_vim_submodule" home/.vim
|
||||||
|
git commit -m 'New vim configuration submodule'
|
||||||
|
}
|
||||||
|
|
||||||
|
diff --git a/test/fixtures/module-files.sh b/test/fixtures/module-files.sh
|
||||||
|
index f4d2b6a..a14658a 100644
|
||||||
|
--- a/test/fixtures/module-files.sh
|
||||||
|
+++ b/test/fixtures/module-files.sh
|
||||||
|
@@ -24,7 +24,7 @@ EOF
|
||||||
|
)
|
||||||
|
|
||||||
|
|
||||||
|
- git submodule add "$my_module"
|
||||||
|
+ git -c protocol.file.allow=always submodule add "$my_module"
|
||||||
|
git commit -m 'my_module (git submodule) added for my new module-files repo'
|
||||||
|
|
||||||
|
mkdir home
|
||||||
|
diff --git a/test/fixtures/nested-submodules.sh b/test/fixtures/nested-submodules.sh
|
||||||
|
index f821ecb..5eec1b5 100644
|
||||||
|
--- a/test/fixtures/nested-submodules.sh
|
||||||
|
+++ b/test/fixtures/nested-submodules.sh
|
||||||
|
@@ -40,11 +40,11 @@ EOF
|
||||||
|
git commit -m 'Add info file for level2 repo'
|
||||||
|
)
|
||||||
|
|
||||||
|
- git submodule add "$level2" level2
|
||||||
|
+ git -c protocol.file.allow=always submodule add "$level2" level2
|
||||||
|
git commit -m 'level2 submodule added for level1'
|
||||||
|
)
|
||||||
|
|
||||||
|
- git submodule add "$level1" level1
|
||||||
|
+ git -c protocol.file.allow=always submodule add "$level1" level1
|
||||||
|
git commit -m 'level1 submodule added for level0'
|
||||||
|
|
||||||
|
local home="$REPO_FIXTURES/home-for-nested-submodule"
|
||||||
|
@@ -84,15 +84,15 @@ EOF
|
||||||
|
git commit -m 'Add info file for subsub repo'
|
||||||
|
)
|
||||||
|
|
||||||
|
- git submodule add "$subsub" .subdir2
|
||||||
|
+ git -c protocol.file.allow=always submodule add "$subsub" .subdir2
|
||||||
|
git commit -m 'subsub submodule added for level2'
|
||||||
|
)
|
||||||
|
|
||||||
|
- git submodule add "$homesub" .subdir1
|
||||||
|
+ git -c protocol.file.allow=always submodule add "$homesub" .subdir1
|
||||||
|
git commit -m 'homesub submodule added for level1'
|
||||||
|
)
|
||||||
|
|
||||||
|
- git submodule add "$home" home
|
||||||
|
+ git -c protocol.file.allow=always submodule add "$home" home
|
||||||
|
git commit -m 'home submodule added for level0'
|
||||||
|
}
|
||||||
|
|
||||||
|
diff --git a/test/fixtures/submodule-outside-home.sh b/test/fixtures/submodule-outside-home.sh
|
||||||
|
index af06798..bbdb2b4 100644
|
||||||
|
--- a/test/fixtures/submodule-outside-home.sh
|
||||||
|
+++ b/test/fixtures/submodule-outside-home.sh
|
||||||
|
@@ -24,7 +24,7 @@ EOF
|
||||||
|
)
|
||||||
|
|
||||||
|
|
||||||
|
- git submodule add "$the_submodule"
|
||||||
|
+ git -c protocol.file.allow=always submodule add "$the_submodule"
|
||||||
|
git commit -m 'the-submodule (git submodule) added for my new module-files repo'
|
||||||
|
|
||||||
|
mkdir home
|
@ -1,3 +1,9 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Fri Nov 11 21:45:19 UTC 2022 - Olav Reinert <seroton10@gmail.com>
|
||||||
|
|
||||||
|
- Fix build issue against Factory:
|
||||||
|
* Add patch git-protocol-file-allow.patch
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Sat May 16 11:59:00 UTC 2020 - Olav Reinert <seroton10@gmail.com>
|
Sat May 16 11:59:00 UTC 2020 - Olav Reinert <seroton10@gmail.com>
|
||||||
|
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
#
|
#
|
||||||
# spec file for package homeshick
|
# spec file for package homeshick
|
||||||
#
|
#
|
||||||
# Copyright (c) 2020 SUSE LLC
|
# Copyright (c) 2022 SUSE LLC
|
||||||
#
|
#
|
||||||
# All modifications and additions to the file contributed by third parties
|
# All modifications and additions to the file contributed by third parties
|
||||||
# remain the property of their copyright owners, unless otherwise agreed
|
# remain the property of their copyright owners, unless otherwise agreed
|
||||||
@ -27,6 +27,7 @@ Source0: https://github.com/andsens/homeshick/archive/v%{version}.tar.gz
|
|||||||
Source1: README-openSUSE.md
|
Source1: README-openSUSE.md
|
||||||
Source99: homeshick.rpmlintrc
|
Source99: homeshick.rpmlintrc
|
||||||
Patch0: suse-packaging.patch
|
Patch0: suse-packaging.patch
|
||||||
|
Patch1: git-protocol-file-allow.patch
|
||||||
BuildRequires: expect
|
BuildRequires: expect
|
||||||
BuildRequires: git >= 1.5
|
BuildRequires: git >= 1.5
|
||||||
BuildRequires: iputils
|
BuildRequires: iputils
|
||||||
@ -52,6 +53,7 @@ frameworks, such as oh-my-zsh, found on sites like https://dotfiles.github.io/.
|
|||||||
%prep
|
%prep
|
||||||
%setup -q
|
%setup -q
|
||||||
%patch0 -p1
|
%patch0 -p1
|
||||||
|
%patch1 -p1
|
||||||
|
|
||||||
%build
|
%build
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user