Compare commits
5 Commits
| Author | SHA256 | Date | |
|---|---|---|---|
| 4a3313f6dd | |||
| e5dc6e295e | |||
| b42c1ed626 | |||
| ea00f1813f | |||
| c8d058f717 |
BIN
config.addon.tar.bz2
LFS
BIN
config.addon.tar.bz2
LFS
Binary file not shown.
24
sync_upstream.sh
Normal file
24
sync_upstream.sh
Normal file
@@ -0,0 +1,24 @@
|
||||
#!/bin/bash
|
||||
|
||||
# Config
|
||||
REPO_DIR="$HOME/Documents/kernel-source" # Change to your local clone path
|
||||
UPSTREAM_URL="https://src.opensuse.org/pool/kernel-source.git"
|
||||
BRANCH="factory"
|
||||
|
||||
cd "$REPO_DIR" || exit 1
|
||||
|
||||
echo ">>> Fetching upstream..."
|
||||
# Add upstream if missing
|
||||
git remote get-url upstream >/dev/null 2>&1 || git remote add upstream "$UPSTREAM_URL"
|
||||
git fetch upstream
|
||||
|
||||
echo ">>> Checking out $BRANCH..."
|
||||
git checkout "$BRANCH"
|
||||
|
||||
echo ">>> Merging upstream/$BRANCH..."
|
||||
git merge "upstream/$BRANCH" --no-edit
|
||||
|
||||
echo ">>> Pushing to origin..."
|
||||
git push origin "$BRANCH"
|
||||
|
||||
echo ">>> Done! Synced at $(date)"
|
||||
Reference in New Issue
Block a user