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

add --depth=1 flag to git clone command #588

Merged
merged 1 commit into from
Jun 30, 2022
Merged
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: 4 additions & 4 deletions docs/install/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
On Ubuntu, Fedora, Debian, or Arch, run `curl up.pash.ndr.md | sh` to get PaSh up and running.

If on other environments or prefer manual setup, there are essentially three steps required to set PaSh up:
1. Clone repo: `git clone git@github.com:binpash/pash.git`
1. Clone repo: `git clone --depth 1 git@github.com:binpash/pash.git`
2. Run `distro-deps.sh` (with `sudo`) and `setup-pash.sh`
3. Export `PASH_TOP` and, optionally, add it to your `PATH`

Expand All @@ -18,7 +18,7 @@ Quick Jump: [Clone & Setup](#) | [Manual Setup](#manual-setup) | [Docker Setup](
The following steps clone the repo, set up dependencies (e.g., compilers), and then build PaSh:

```sh
git clone git@github.com:binpash/pash.git
git clone --depth 1 git@github.com:binpash/pash.git
sudo pash/scripts/distro-deps.sh
./pash/scripts/setup-pash.sh
```
Expand All @@ -36,7 +36,7 @@ automake bc bsdmainutils curl gcc git libffi-dev libtool locales locales-all m4
Then clone the PaSh repository and run `setup-pash.sh` as follows:

```sh
git clone git@github.com:binpash/pash.git
git clone --depth 1 git@github.com:binpash/pash.git
./pash/scripts/setup-pash.sh
```

Expand All @@ -60,7 +60,7 @@ We refresh this image (as well as other images) on every major release.
_Build Image (Latest Commit):_
To build the latest Docker container, run `docker build` in [scripts/docker](https://github.com/binpash/pash/tree/main/scripts/docker):
```sh
git clone git@github.com:binpash/pash.git
git clone --depth 1 git@github.com:binpash/pash.git
cd pash/scripts/docker/
docker build -f ./ubuntu/Dockerfile -t "pash:latest" .
```
Expand Down
2 changes: 1 addition & 1 deletion scripts/docker/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ To restart after you exit, run `docker start -i pash-play`
## From PaSh's Official docker

```sh
git clone git@github.com:binpash/pash.git
git clone --depth 1 git@github.com:binpash/pash.git
cd pash/scripts/docker
docker build -t "pash:latest" .
```
Expand Down
2 changes: 1 addition & 1 deletion scripts/docker/debian/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ FROM debian:10
RUN apt-get update -y && apt-get install -y git
ENV PASH_TOP=/opt/pash
# download PaSh
RUN git clone https://github.com/binpash/pash.git /opt/pash
RUN git clone --depth 1 https://github.com/binpash/pash.git /opt/pash
RUN bash /opt/pash/scripts/distro-deps.sh -o
RUN yes | bash /opt/pash/scripts/setup-pash.sh -o
ENV LANG en_US.UTF-8
Expand Down
2 changes: 1 addition & 1 deletion scripts/docker/fedora/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ FROM fedora:35
RUN dnf install git -y
ENV PASH_TOP=/opt/pash
# download PaSh
RUN git clone https://github.com/binpash/pash.git /opt/pash
RUN git clone --depth 1 https://github.com/binpash/pash.git /opt/pash
RUN bash /opt/pash/scripts/distro-deps.sh -o
RUN yes | bash /opt/pash/scripts/setup-pash.sh -o
ENV LANG en_US.UTF-8
Expand Down
2 changes: 1 addition & 1 deletion scripts/docker/ubuntu/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ FROM ubuntu:18.04
RUN apt-get update -y && apt-get install -y git
ENV PASH_TOP=/opt/pash
# download PaSh
RUN git clone https://github.com/binpash/pash.git /opt/pash
RUN git clone --depth 1 https://github.com/binpash/pash.git /opt/pash
RUN bash /opt/pash/scripts/distro-deps.sh -o
RUN yes | bash /opt/pash/scripts/setup-pash.sh -o
ENV LANG en_US.UTF-8
Expand Down
2 changes: 1 addition & 1 deletion scripts/setup-pash.sh
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ else
# remove previous installation if it exists
rm -rf $PASH_TOP/compiler/parser/libdash
# we are in package mode, no .git information is available
git clone https://github.com/angelhof/libdash/ $PASH_TOP/compiler/parser/libdash
git clone --depth 1 https://github.com/angelhof/libdash/ $PASH_TOP/compiler/parser/libdash
fi
cd $PASH_TOP
. "$PASH_TOP/scripts/utils.sh"
Expand Down
4 changes: 2 additions & 2 deletions scripts/up.sh
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,10 @@ if [ "$PLATFORM" = "darwin" ]; then
fi

set +e
git clone git@github.com:binpash/pash.git
git clone --depth 1 git@github.com:binpash/pash.git
if [ $? -ne 0 ]; then
echo 'SSH clone failed; attempting HTTPS'
git clone https://github.com/andromeda/pash.git
git clone --depth 1 https://github.com/andromeda/pash.git
fi
set -e

Expand Down