> From: Gopichand Nakkala <nakka...@gmail.com>
> I am trying to clean untracked files and running into following error,can 
> anyone one help on how to overcome this?
> user@machine:/local/mnt/workspace/i$ git clean -f -d
> warning: failed to remove halimpl/ncihal/DT_Include/DT_Nfc_types.h
> warning: failed to remove halimpl/ncihal/DT_Include/DT_Nfc.h
> warning: failed to remove halimpl/ncihal/DT_Include/DT_Nfc_link.h
> warning: failed to remove halimpl/ncihal/DT_Include/DT_Nfc_log.h
> warning: failed to remove halimpl/ncihal/DT_Include/qc1990.h
> warning: failed to remove halimpl/ncihal/DT_Include/DT_Nfc_status.h
> warning: failed to remove halimpl/ncihal/DT_Include/DT_Nfc_i2c.h

That message is generated in one of 4 places in builtin/clean.c.
(Search for "failed to remove" in the Git source, find that its only
use is in that file in

    static const char *msg_warn_remove_failed = N_("failed to remove %s");

msg_warn_remove_failed is used in 4 places, after either unlink() or
rmdir() has failed.)

In your case, none of these are directories, so it means that an
unlink() on those files failed.  You need to examine *why* the
unlink() failed.  Probably the simpest way is to do 

    rm halimpl/ncihal/DT_Include/DT_Nfc_types.h

and see what error message you get.

(This doesn't explain why the Git code doesn't give you a proper error
message for this failure, sheesh.)


Dale Worley
Or conferences like the one held at the University of British Columbia
last month, "Remaining Human in the Face of Our Growing Dependence on
Technology," where 250 visibly well-nourished philosophers,
psychologists, spiritual seekers, alternative health practitioners,
entertainers, and even a slumming scientist or two came by jet from
around the planet to agree with each other that technology is toxic,
consumerism is unnatural, computers cause alienation and loneliness,
civilization pollutes, and we're stressing the ecosystem to the
point of collapse.  Oddly, not one volunteered to kill or sterilize
themselves.     -- Spider Robinson, The Globe and Mail, 2001-06-08

You received this message because you are subscribed to the Google Groups "Git 
for human beings" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to git-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to