Skip to content
This repository was archived by the owner on Sep 8, 2025. It is now read-only.

Recommend shallow git cloning. #1453

Open
gibbz00 wants to merge 1 commit intoSigNoz:mainfrom
gibbz00:shallow_clone
Open

Recommend shallow git cloning. #1453
gibbz00 wants to merge 1 commit intoSigNoz:mainfrom
gibbz00:shallow_clone

Conversation

@gibbz00
Copy link
Copy Markdown

@gibbz00 gibbz00 commented Jan 13, 2024

Fixes: SigNoz/signoz.io#82

Simply ran:

find . -type f -name '*.md' -print | xargs sed -i 's/git clone -b main/git clone --single-branch --depth 1/g'
find . -type f -name '*.md' -print | xargs sed -i 's/git clone http/git clone --single-branch --depth 1/g'

@netlify
Copy link
Copy Markdown

netlify Bot commented Jan 13, 2024

Deploy Preview for frosty-austin-928e43 ready!

Built without sensitive environment variables

Name Link
🔨 Latest commit 2a44a86
🔍 Latest deploy log https://app.netlify.com/sites/frosty-austin-928e43/deploys/65a283e84bffa30008f61b9b
😎 Deploy Preview https://deploy-preview-1453--frosty-austin-928e43.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@github-actions
Copy link
Copy Markdown

⚡️ Lighthouse report for the changes in this PR:

Category Score
🔴 Performance 42
🟠 Accessibility 89
🟠 Best practices 83
🟠 SEO 75
🟢 PWA 100

Lighthouse ran on https://deploy-preview-1453--frosty-austin-928e43.netlify.app/

@Calm-Rock Calm-Rock requested a review from prashant-shahi May 16, 2024 05:22
@prashant-shahi
Copy link
Copy Markdown
Contributor

Hey @gibbz00, thanks for the PR.

This helps people who would just want to run it once.

Can you sync latest changes from upstream and also retain the -b main part?

Try running the following:

find . -type f -name '*.md' -print | xargs sed -i 's/git clone -b main/git clone -b main --single-branch --depth 1/g'
find . -type f -name '*.md' -print | xargs sed -i 's/git clone http/git clone --single-branch --depth 1/g'

@prashant-shahi
Copy link
Copy Markdown
Contributor

@Calm-Rock We can re-create the linked PR changes in new PR after running the shared commands.

Otherwise, it will be difficult to resolve the conflicts.

@prashant-shahi prashant-shahi requested a review from Calm-Rock May 30, 2024 12:45
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Recommend using shallow clone on installation.

2 participants