Page Menu
Home
DevCentral
Search
Configure Global Search
Log In
Files
F3774980
D3225.id8265.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
899 B
Referenced Files
None
Subscribers
None
D3225.id8265.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
+
+# Prepar 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 25, 15:44 (21 h, 13 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2262724
Default Alt Text
D3225.id8265.diff (899 B)
Attached To
Mode
D3225: Update export script
Attached
Detach File
Event Timeline
Log In to Comment