Git Product home page Git Product logo

Comments (32)

sheabunge avatar sheabunge commented on June 12, 2024 3

Hmm… perhaps check that your TEMP and TMP environment variables are defined? I'll see if this is affecting me too.

from gitportable.

 avatar commented on June 12, 2024 3

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.

orschiro avatar orschiro commented on June 12, 2024 1

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.

qq42 avatar qq42 commented on June 12, 2024 1

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.

Murmur avatar Murmur commented on June 12, 2024 1

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.

orschiro avatar orschiro commented on June 12, 2024

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.

mMontu avatar mMontu commented on June 12, 2024

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.

orschiro avatar orschiro commented on June 12, 2024

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.

mMontu avatar mMontu commented on June 12, 2024

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.

orschiro avatar orschiro commented on June 12, 2024

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.

BioALIEN avatar BioALIEN commented on June 12, 2024

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.

orschiro avatar orschiro commented on June 12, 2024

As I said above, append the temp variable to it:

[Environment]
PATH=%PATH%;%PAL:AppDir%\Git;%PAL:DataDir%;%TEMP%

from gitportable.

margenn avatar margenn commented on June 12, 2024

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.

sheabunge avatar sheabunge commented on June 12, 2024

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.

user882023912867 avatar user882023912867 commented on June 12, 2024

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.

julkue avatar julkue commented on June 12, 2024

The problem still exists.

from gitportable.

axgdev avatar axgdev commented on June 12, 2024

@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.

sheabunge avatar sheabunge commented on June 12, 2024

@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.

blokeley avatar blokeley commented on June 12, 2024

@ramiroalvarez

  1. I tried "cmd; bash" and got "bash is not a recognised... command"
  2. If I try "mkdir /tmp" in the git bash window, it says "/tmp already exists"

from gitportable.

sheabunge avatar sheabunge commented on June 12, 2024

@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.

sheabunge avatar sheabunge commented on June 12, 2024

This should be fixed in 1.9.5 Development Test 2. Could people please test it out and report back here.

from gitportable.

Orobas avatar Orobas commented on June 12, 2024

I just downloaded and installed 1.9.5 Development Test 2 from the link on Github, the error still occurred for me.

from gitportable.

 avatar commented on June 12, 2024

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.

Murmur avatar Murmur commented on June 12, 2024

Thanks, did the trick \app\git\git-bash.bat script opens a console where /tmp folder stays alive. Problem solved.

from gitportable.

sheabunge avatar sheabunge commented on June 12, 2024

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.

sheabunge avatar sheabunge commented on June 12, 2024

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.

qq42 avatar qq42 commented on June 12, 2024

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'.

image

from gitportable.

adica avatar adica commented on June 12, 2024

@ramiroalvarez solution works for me as well.
thanks!

from gitportable.

sheabunge avatar sheabunge commented on June 12, 2024

I've just released a new version which uses Git 2.5.3. @qq42 @adica

from gitportable.

Walker009 avatar Walker009 commented on June 12, 2024

@ramiroalvarez solution works for me as well, except I opened the command window from git bash

from gitportable.

raszpl avatar raszpl commented on June 12, 2024

GitPortable_2.6.2_Development_Test_1.paf = bash.exe: warning: could not find /tmp, please create!

from gitportable.

sheabunge avatar sheabunge commented on June 12, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.