Page Menu
Home
DevCentral
Search
Configure Global Search
Log In
Files
F3752503
D3225.id8267.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
900 B
Referenced Files
None
Subscribers
None
D3225.id8267.diff
View Options
diff --git a/_utils/repo/export-commits-to-manyrepo.sh b/_utils/repo/export-commits-to-manyrepo.sh
--- a/_utils/repo/export-commits-to-manyrepo.sh
+++ b/_utils/repo/export-commits-to-manyrepo.sh
@@ -2,7 +2,7 @@
set -e
-# Parses arguments
+# Parse arguments
if [ $# -lt 1 ]; then
echo "Usage: $0 <TARGET REPOSITORY>" 1>&2
exit 1
@@ -11,15 +11,22 @@
set -x
-# Prepares new main branch for $REPO
+# Ensure we've up-to-date information
+git fetch --all
+
+# Prepare new main branch for $REPO
git subtree split -P "$REPO" -b "$REPO"
# Merge new subtree split branch into main
+git fetch $REPO main
git rebase --strategy-option=ours "$REPO" "$REPO"/main
+git checkout $REPO
+git rebase --strategy-option=ours "$REPO"/main
+
# Push new main
-git push "$REPO" "$REPO"/main:main
+git push "$REPO" "$REPO":main
-# Cleans up
+# Clean up
git checkout main
git branch -D "$REPO"
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Mon, Nov 18, 19:12 (19 h, 44 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2250875
Default Alt Text
D3225.id8267.diff (900 B)
Attached To
Mode
D3225: Update export script
Attached
Detach File
Event Timeline
Log In to Comment