Skip to content

Commit

Permalink
executes an additional git fetch origin command to ensure a full sync…
Browse files Browse the repository at this point in the history
… with the remote
  • Loading branch information
pedro-at-decenomy committed May 26, 2024
1 parent 07584c8 commit 733408b
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion contrib/docker/Dockerfile.dsw-linux-arm64-wallet
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ WORKDIR /$TICKER
# Check out the $TARGET
RUN git stash --include-untracked && \
git fetch --all && \
(git checkout $TARGET || git checkout -B $TARGET) && \
(git checkout $TARGET || (git checkout -B $TARGET && git fetch origin)) && \
(git reset --hard origin/$TARGET || git reset --hard $TARGET)

# Run Git commands to extract the timestamps
Expand Down
2 changes: 1 addition & 1 deletion contrib/docker/Dockerfile.dsw-linux-x64-wallet
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ WORKDIR /$TICKER
# Check out the $TARGET
RUN git stash --include-untracked && \
git fetch --all && \
(git checkout $TARGET || git checkout -B $TARGET) && \
(git checkout $TARGET || (git checkout -B $TARGET && git fetch origin)) && \
(git reset --hard origin/$TARGET || git reset --hard $TARGET)

# Run Git commands to extract the timestamps
Expand Down
2 changes: 1 addition & 1 deletion contrib/docker/Dockerfile.dsw-macos-x64-wallet
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ WORKDIR /$TICKER
# Check out the $TARGET
RUN git stash --include-untracked && \
git fetch --all && \
(git checkout $TARGET || git checkout -B $TARGET) && \
(git checkout $TARGET || (git checkout -B $TARGET && git fetch origin)) && \
(git reset --hard origin/$TARGET || git reset --hard $TARGET)

RUN git log -1 --format="%at" | xargs -I{} date -d @{} "+%Y-%m-%d %H:%M:%S" > /git_timestamp
Expand Down
2 changes: 1 addition & 1 deletion contrib/docker/Dockerfile.dsw-windows-x64-wallet
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ WORKDIR /$TICKER
# Check out the $TARGET
RUN git stash --include-untracked && \
git fetch --all && \
(git checkout $TARGET || git checkout -B $TARGET) && \
(git checkout $TARGET || (git checkout -B $TARGET && git fetch origin)) && \
(git reset --hard origin/$TARGET || git reset --hard $TARGET)

RUN git log -1 --format="%at" | xargs -I{} date -d @{} "+%Y-%m-%d %H:%M:%S" > /git_timestamp
Expand Down

0 comments on commit 733408b

Please sign in to comment.