forked from ai-dynamo/dynamo
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup.sh
More file actions
executable file
·31 lines (26 loc) · 935 Bytes
/
setup.sh
File metadata and controls
executable file
·31 lines (26 loc) · 935 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
#!/bin/sh
# One-time setup for dynamo-fuzzing contributors
# Run after cloning: ./setup.sh
set -e
# Upstream (ai-dynamo/dynamo) — for syncing latest code
if ! git remote get-url upstream >/dev/null 2>&1; then
git remote add upstream https://github.com/ai-dynamo/dynamo.git
echo "Added remote: upstream (ai-dynamo/dynamo)"
else
echo "Remote 'upstream' already exists"
fi
# Public fork — for filing PRs to ai-dynamo/dynamo
if ! git remote get-url public-fork >/dev/null 2>&1; then
git remote add public-fork https://github.com/ShounakRay/fuzzy-dynamo.git
echo "Added remote: public-fork (ShounakRay/fuzzy-dynamo)"
else
echo "Remote 'public-fork' already exists"
fi
# Use tracked hooks (so all contributors get the same hooks)
git config core.hooksPath hooks
echo "Set core.hooksPath to hooks/"
echo ""
echo "Remotes configured:"
git remote -v
echo ""
echo "Done. See WORKFLOW.md for workflow reference."