Comments (32)
Hmm… perhaps check that your TEMP
and TMP
environment variables are defined? I'll see if this is affecting me too.
from gitportable.
Open Start Menu
Type "cmd"
Press Enter
type "bash"
Press Enter
type "mkdir /tmp"
Press Enter
Close the command prompt window
Solved the error for me
from gitportable.
I was able to narrow down the issue. When you start Git via GitPortable.exe
and then use git pull
you will see the /tmp error. Try the same by directly launching Git Bash.vbs
or by modifying Start Git Bash.cmd
(removing the line cd App\Git
) and then launching Start Git Bash.cmd
. It must be related to the cd action. However, when you remove cd App\Git
, GitPortable.exe
no longer works as it needs to switch to App\Git
to find Start Git Bash.cmd
which then launches Git Bash.vbs
.
from gitportable.
I worked around this issue by adding the following to my ~/.bash_profile:
[ ! -d /tmp ] && mkdir /tmp
Adding this to the /etc/profile script will fix it for everyone.
I discovered that mkdir /tmp
"magically" from within msysgit creates the directory in the user's temp directory, i.e. on Windows 7 when it creates /tmp
, /tmp
actually maps to %USERPROFILE%\AppData\Local\Temp\GitPortableTemp
.
from gitportable.
I tried .bash_profile fix but did not work, but found an interesting behaviour.
Run GitPortable.exe
$ ls -la /tmp ## tmp dir is found
$ cd /c/projects
$ ls -la /tmp ## tmp dir is not found gitk does gives a warning
$ mkdir /tmp
$ ls -la /tmp ## tmp dir is found and gitk does not give a warning
Tried to put cd /c/ && mkdir /tmp
in a .bash_profile but but I think it does not want to chdir to /C/* folders
edit1 Actually this is what happens. Initial tmp folder is found while cmd.exe "Starting Git portable..." console window is visible. It disappears within 10 seconds. Then tmp folder is no longer found.
edit2 installed 1.9.5 Development Test 2 on top of the older 1.9.5 release. This version does not show cmd.exe console for 10 seconds, /tmp folder is alive few seconds then it disappears from directory listings.
from gitportable.
I was able to fix the issue by adding %PAL:DataDir%
to the launcher environment variable.
I recreated the installer for Dev Test 3 to use the improvement.
from gitportable.
Hello @orschiro! I've installed this app yesterday, from https://github.com/bungeshea/GitPortable/blob/master/GitPortable_1.8.3_Development_Test_1_online.paf.exe, and noticed that this bug is still present. Output of both TEMP
and TMP
is /tmp
. The fix you created was included on this .paf.exe
?
from gitportable.
Thanks for the report mMontu.
I will reopen this and try to find a solution.
Actually the fix I provided should be included.
Do you notice any negative side effects?
from gitportable.
I was in trouble to make git commands to work. Some turned out to be caused for other reasons.
One that remains is with git difftool
:
$ git difftool
fatal: unable to create temp-file: No such file or directory
from gitportable.
I am currently not in the state of testing the code but I think we
need to add %TEMP% to [Environment]
PATH=%PATH%;%PAL:AppDir%\Git;%PAL:DataDir% in
GitPortable/App/AppInfo/Launcher/GitPortable.ini
Could you guys please try that and build GitPortable with that option?
Robert
On 19 July 2013 13:56, mMontu [email protected] wrote:
I was in trouble to make git commands to work. Some turned out to be caused
for other reasons.
One that remains is with git difftool:$ git difftool
fatal: unable to create temp-file: No such file or directory—
Reply to this email directly or view it on GitHub.
from gitportable.
The path PATH=%PATH%;%PAL:AppDir%\Git;%PAL:DataDir% is already in the file GitPortable/App/AppInfo/Launcher/GitPortable.ini
But I still get this error: bash.exe: warning: could not find /tmp
from gitportable.
As I said above, append the temp variable to it:
[Environment]
PATH=%PATH%;%PAL:AppDir%\Git;%PAL:DataDir%;%TEMP%
from gitportable.
After add %TEMP% nothing changed.
A workaround was issue 2 commands in bash: "cd /" and "mkdir tmp"
Tip found in: http://canerblt.wordpress.com/2013/08/26/git-warning-could-not-find-tmp-please-create/
from gitportable.
Of course, /
refers to the App/Git
directory. So a possible solution could be to add a tmp
dir to that directory.
I still cannot reproduce the error, so I'm not sure how we should resolve this. In the meantime, people who are receiving the error can try the solution mentioned above by @margenn.
from gitportable.
I am not sure if this is the case, but I had that problem before.
My portable environment is running in a Virtual disk in RAM and I changed all the caches temp tmp pagination file into the RAM, but the problem happen when I wanted to recreate all the settings including the %TEMP% environment var into my RAM unit environment.
The problem with the environment vars is that loads before the script is executed, and any child process will read the starting vars and if you change the vars, you will need to close any parent process too, in some cases the parent process is the user login!! so is not recommendable change the %TEMP% vars (or any environment var) on the fly or by using scripts, since in the worst scenario you will need to log out and log in again.
In my settings the default %TEMP% is on the virtual disk in RAM, when I reboot he first thing is to create the virtual disk if not I have any kind of problems.
from gitportable.
The problem still exists.
from gitportable.
@bungeshea To reproduce the problem: Get a new installation of Git portable. cd (charge directory) to any repository that you may have. Then type: gitk. You should see the warning. Example of the steps
cd /e/myproject
gitk
bash.exe: warning: could not find /tmp, please create!
from gitportable.
@axgdev Thanks, I can reproduce the error now.
@ramiroalvarez That does indeed solve the error - the only issue now is removing the need to run those commands.
from gitportable.
- I tried "cmd; bash" and got "bash is not a recognised... command"
- If I try "mkdir /tmp" in the git bash window, it says "/tmp already exists"
from gitportable.
@qq42 great idea on adding the creation code to the profile script; I've done so and will build 1.9.5 Dev Test 2 shortly. Could everyone please try it out and see if this issue is resolved.
from gitportable.
This should be fixed in 1.9.5 Development Test 2. Could people please test it out and report back here.
from gitportable.
I just downloaded and installed 1.9.5 Development Test 2 from the link on Github, the error still occurred for me.
from gitportable.
Rather than running GitPortable.exe, navigate to the App\Git folder and run git-bash.bat. Doing that has solved my tmp folder errors.
from gitportable.
Thanks, did the trick \app\git\git-bash.bat
script opens a console where /tmp folder stays alive. Problem solved.
from gitportable.
Git for Windows proper has been released, and includes new ways to launch Git Bash or Git Cmd. I'll be updating Git Portable soon to use the new version; hopefully that should fix this bug.
from gitportable.
I've released Git Portable 2.5.1 Dev Test 1, which updates Git to version 2.5.1 and uses a completely new launcher system which should fix this issue.
from gitportable.
When running Git Bash Portable right after the upgrade/install for Git Portable 2.5.1 Dev Test 1
completes it says:
Failed to fork child process: Resource temporarily unavailable. DLL rebasing may be required. See 'rebaseall --help'.
from gitportable.
@ramiroalvarez solution works for me as well.
thanks!
from gitportable.
I've just released a new version which uses Git 2.5.3. @qq42 @adica
from gitportable.
@ramiroalvarez solution works for me as well, except I opened the command window from git bash
from gitportable.
GitPortable_2.6.2_Development_Test_1.paf = bash.exe: warning: could not find /tmp, please create!
from gitportable.
I'm closing this issue for now; if this error occurs in a new version please create a new one.
from gitportable.
Related Issues (20)
- Not for Ubuntu HOT 2
- bash.exe: warning: could not find /tmp, please create! HOT 2
- cannot find menu "git pull" in GitGUIPortable.exe HOT 4
- gitk launcher HOT 2
- It doesen't work
- bash.exe: warning: could not find /tmp, please create! HOT 3
- Launching git-bash vs git-gui from menu HOT 6
- Git bash application launcher disapeared HOT 2
- Install up-to-date git on top of the existing GitPortable installation HOT 3
- Traojan warning HOT 1
- .ssh/config location
- Source code HOT 1
- Github release should include the newest build HOT 1
- Submit to PA.com HOT 2
- post-install.bat is not run after install HOT 1
- general questions HOT 3
- GitPortable is not portable HOT 5
- Can't run git portable when usual git bash is open HOT 2
- Can't Access Environment Variables with non ASCII characters [a-zA-Z0-9_] HOT 1
- Correct way to set up a Windows Terminal profile? HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from gitportable.