Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

0.4.7 #625

Merged
merged 7 commits into from
Jul 7, 2024
Merged

0.4.7 #625

Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 7 additions & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,4 +20,10 @@ jobs:
- run:
git config --global user.email "[email protected]";
git config --global user.name "Your Name";
- run: make test
git config --global init.defaultBranch "master";
git config --global --add safe.directory "$PWD";
git config --global --add safe.directory "$PWD.git";
- if: startsWith(matrix.os, 'macos')
run: make test
- if: startsWith(matrix.os, 'ubuntu')
run: make docker-tests
10 changes: 10 additions & 0 deletions Changes
Original file line number Diff line number Diff line change
@@ -1,3 +1,13 @@
version: 0.4.7
date: Sun 7 Jul 2024 11:04:00 AM EST
- Convert testing to use docker with updated git versions
- Fix numerous places where quoting was incorrect causing path name collisions
- Fix pull-force test to deal with git not defaulting to merges on pulls after 2.33
- Fix issue where docker tests didn't work with git 2.30 or higher because of
increased permission scrutiny.
- Update readme to say this tools is in production environments
- Update readme to use internet archive for old articles about subrepo no longer
available on their original source
---
version: 0.4.6
date: Fri 21 Apr 2023 10:18:34 AM EST
Expand Down
10 changes: 5 additions & 5 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -22,16 +22,16 @@ INSTALL_EXT ?= $(INSTALL_LIB)/$(NAME).d
INSTALL_MAN1 ?= $(DESTDIR)$(PREFIX)/share/man/man1

# Docker variables:
DOCKER_TAG ?= 0.0.4
DOCKER_TAG ?= 0.0.6
DOCKER_IMAGE := ingy/bash-testing:$(DOCKER_TAG)
BASH_VERSIONS ?= 5.1 5.0 4.4 4.3 4.2 4.1 4.0
DOCKER_TESTS := $(BASH_VERSIONS:%=docker-test-%)
GIT_VERSIONS := 2.29 2.25 2.17 2.7
GIT_VERSIONS := 2.45 2.40 2.30 2.29 2.25 2.17 2.7

prove ?=
test ?= test/
bash ?= 5.0
git ?= 2.29
bash ?= 5.1
git ?= 2.45

# Basic targets:
default: help
Expand Down Expand Up @@ -106,7 +106,7 @@ clean:
rm -fr tmp test/tmp

define docker-make-test
docker run -i -t --rm \
docker run --rm \
-v $(PWD):/git-subrepo \
-w /git-subrepo \
$(DOCKER_IMAGE) \
Expand Down
4 changes: 2 additions & 2 deletions Meta
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
=meta: 0.0.2

name: git-subrepo
version: 0.4.6
version: 0.4.7
abstract: Git Submodule Alternative
homepage: https://github.com/ingydotnet/git-subrepo#readme
license: MIT
copyright: 2013-2023
copyright: 2013-2024

author:
name: Ingy döt Net
Expand Down
4 changes: 2 additions & 2 deletions ReadMe.pod
Original file line number Diff line number Diff line change
Expand Up @@ -642,8 +642,8 @@ function is called:

=head1 Status

The git-subrepo command has been in use for well over a year and seems to get
the job done. Development is still ongoing but mostly just for fixing bugs.
The git-subrepo command has been used in production and seems to get the job
done. Development is still ongoing but mostly just for fixing bugs.

Trying subrepo out is simple and painless (this is not C<git submodule>).
Nothing is permanent (if you do not push to shared remotes). ie You can always
Expand Down
2 changes: 1 addition & 1 deletion doc/git-subrepo.swim
Original file line number Diff line number Diff line change
Expand Up @@ -577,7 +577,7 @@ is called:

= Status

The git-subrepo command has been in use for well over a year and seems to get
The git-subrepo command has been used in production and seems to get
the job done. Development is still ongoing but mostly just for fixing bugs.

Trying subrepo out is simple and painless (this is not `git submodule`).
Expand Down
8 changes: 4 additions & 4 deletions lib/git-subrepo
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ fi
bash+:import :std can version-check


VERSION=0.4.6
VERSION=0.4.7
REQUIRED_BASH_VERSION=4.0
REQUIRED_GIT_VERSION=2.7.0
GIT_TMP=$(git rev-parse --git-common-dir 2> /dev/null || echo .git)/tmp
Expand Down Expand Up @@ -166,7 +166,7 @@ main() {
# Run the command on all subrepos
local args=( "${command_arguments[@]}" )
get-all-subrepos
for subdir in ${subrepos[*]}; do
for subdir in "${subrepos[@]}"; do
command-prepare
subrepo_remote=
subrepo_branch=
Expand Down Expand Up @@ -1245,11 +1245,11 @@ get-params() {
if [[ $i -ge $num ]]; then
usage-error "Command '$command' requires arg '${arg#+}'."
fi
printf -v ${arg#+} -- "$value"
printf -v "${arg#+}" -- "$value"
# Look for function name after ':' to provide a default value
else
if [[ $i -lt $num ]]; then
printf -v ${arg%:*} -- "$value"
printf -v "${arg%:*}" -- "$value"
elif [[ $arg =~ : ]]; then
"${arg#*:}"
fi
Expand Down
Loading
Loading