|
|
|
|
|
|
Re: Unable to push to repository on USB drive [message #1807207 is a reply to message #1807043] |
Fri, 24 May 2019 15:46 |
David Gauntt Messages: 7 Registered: May 2014 |
Junior Member |
|
|
I have a nice workaround to share with anyone else with this problem. This works only with Mac OS X, but I think the problem is specific to OS X.
1) Create a text file named "push.sh" in the root directory of your project; this is the directory containing the file ".project".
2) Enter the following text into the file:
#!/bin/bash
cd ..
echo Pushing $PWD
git push
echo Push finished
3) Make the file executable. To do this, open the Terminal and enter the following commands:
cd <the directory containing push.sh>
chmod u+x push.sh
4) Create a new External Tool in Eclipse. A simple tutorial for doing this is at https://stackoverflow.com/questions/1562600/is-there-an-eclipse-plugin-to-run-system-shell-in-the-console. Follow the instructions in the reply that starts with "You don't need a plugin", but configure your new tool with the following options:
Name: Push current project
Location: /bin/bash
Working directory: ${project_loc}
Arguments: push.sh
5) To push a project containing push.sh, select a file in the project and then select "Push current project" from the External Tools menu. The script will write messages to the console; these won't include progress messages, but you will get a message when the push is done:
Pushing /Users/dgauntt/git/IMAC_CTPM
Everything up-to-date
Push finished
[Updated on: Fri, 24 May 2019 15:49] Report message to a moderator
|
|
|
|
Powered by
FUDForum. Page generated in 0.05843 seconds